Click here to Skip to main content
14,695,499 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
ZurdoDev 21-Apr-14 7:18am
I'm confused. If you pass the proper credentials it will work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900