Solved

SQL Server 2005 Crystal Report is unable to connect: Incorrect log on parameters

Posted on 2014-01-30
6
866 Views
Last Modified: 2014-02-02
Hey guys,

I have about 10 crystal reports that I created in VS 2008 C# version of Crystal Reports.  I have a code snippet attached that I run 5 reports by only changing the report name.  They use the same stored procedure and the same code except for the report name.  Two of the reports give the error:  Unable to connect: Incorrect log on parameters.

There must be something wrong with the reports but they work perfectly when run in the Main Report Preview.
Print.txt
0
Comment
Question by:JDL129
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 39823252
What version of Crystal?
By the code I am guessing it is CR9

Do the 2 reports that fail have a subreport?

mlmcc
0
 

Author Comment

by:JDL129
ID: 39824316
mlmcc!!!  Thanks for the post!!

They were all built with whatever CR comes with VS2008 C#.
No subreport on any of the 5 reports.  I can just change the report name in the code and three will run correctly and two of them won't.  They all have the same data source which is a stored procedure in sql server 2005.

Thanks,
Jerry
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 250 total points
ID: 39824392
Can you open the reports in the designer and try a VERIFY DATABASE?

mlmcc
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:JDL129
ID: 39824579
mlmcc!!

Yes, and it shows all the data when I run it in the designer mode.  I am creating a new stored procedure.  Maybe I just missed a field in the one I am currently using.

Thanks for your assistance!!!!!!!!!!  Keep thinking!!!!

Jerry
0
 

Author Comment

by:JDL129
ID: 39824681
mlmcc!!

I created a new stored procedure and created a new label but am still getting the same error.
I changed the name of the report to one that works and it still does.  The only thing different in the procedure is the report name.  :-(

Keep Thinking!!!

Jerry
0
 

Author Closing Comment

by:JDL129
ID: 39827813
mlmcc!!!

What I did to create the report was to replace the fields on a report that was working with the new ones I needed.  I haven't a clue why that would work and the new ones wouldn't.
Thanks for the assist!!!
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question