cancel
Showing results for 
Search instead for 
Did you mean: 

User prompted for Database Login with blank database catalog - but only on one machine

0 Kudos
5,302

I have a set of Crystal Reports that has been working for a long time. Recently, a small subset of updated reports are now prompting one of my users for database connection information when the report starts:

There is a default connection in the report but only the server gets picked up, not the catalog.

This behaviour only happens on the one machine, none of my other users are experiencing problems. The function that sets the database connection was copied from one of Don's examples, long ago. We have recently upgraded all users to V22, but only one user is experiencing this strange problem and only with 2 reports - unfortunately the ones they use most often.

I have a standard report form with the Crystal Report Viewer embedded in it. This form uses the same code for all reports: 1 - set parameters, 2 - set database connection for report and all sub-reports.

Does anyone have any suggestions on how to debug this? I have been unable to see any differences between the users connection information (in a domain) on that machine vs any other machines. Needless to say, it works fine in development and is not reproduceable.

The environment is Visual Studio 2010, Visual Basic, SQL Server 2005.

Thanks, Neil

View Entire Topic
0 Kudos

Don, your suggestion for troubleshooting showed what the problem was. The log file showed it was looking for the SQL Client 11. Over several generations of programmers, report connections to the server had variously been set up as ODBC, SQLCient 10 and SQLClient 11. I was unable to get SQL Client 11 to install on the target machines (it flat out said that Windows 10 was not the correct operating system?!? - tried 32 and 64 bit versions). However, going back and reviewing 100+ reports showed the discrepancies in drivers. Setting all reports and sub-reports to the same SQL ODBC connection fixed the problem. This will also make installations easier in future as we don't have to package a separate installer for the SQL Driver. Thanks, much appreciated.