HI
I have created a Crystal report using push model. While viewing the data I am getting the correct output as I have already used
SetDatabaseLogon() method.
But While I am trying to print or export I am getting this error
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\3edge\LOCALS~1\Temp\Form-3A {ED78A428-2AA9-40FD-9D61-16D33D548D83}.rpt: Unable to connect: incorrect log on parameters.
While I check then I found that I am using OLE DB connectivity to SQL Server (SQL Authentication) and my SQL db is in a server. And the Database expert in not saving my password when ever I am creating a Connection
Please help me how to come out this problem.
Thnx in Advance.
Loading

Vilas GiteRank #951 · 2.1K reputationPosted May 7, 2011, 2:54 AM EDT
Ezhar Anasri4 reputationPosted May 8, 2011, 10:50 PM EDT
Vilas GiteRank #951 · 2.1K reputationPosted May 11, 2011, 1:58 AM EDT
Please refer this.
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-dynamic-login.htm
hopes it will solve your problm.