Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

assign different SQL server name to crystal report

$
0
0
I'm working on a WPF.Net application (.Net 2010) with Crystal Reports and sql server 2012,and want to connect to my Sql Server instance in the Crystal Reports designer on my machine. and send this data to crystal by code:
 
    
my Server Name: MSSQLSERVER
    Authentication: SQL server Authentication
    User Name: my username
    Password: my password

    myCrystalReport.SetDatabaseLogon("myUsername", "myPassword", ".", "myDatabaseName");



also add this data in app.config and it works fine, but on my client machine when I deployed this application , crystal reports asks me for password, and I my client machine didi't accept (.) for the server name, 

   
 my client machine server name is : ADMIN-PC\SQLEXPRESS



so how can I solve this please 

Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>