on 02-11-2010 8:56 AM
One report, version 11, includes two sub report. Preview is ok in development, called by program is ok too, even change several SQL Server and DB. But after deploy to production, it raise error "Failed to retrieve data from the database. Details: [Database Vendor Code:911]". And after preview production data in Crystal Report designer, and save report template file (Not include data). Called by program to connect production, it is ok. But called by program connect to back development DB, it raise same error. Seems report template file saved development information, and reject program passed DB information.
Thanks very much for your suggestion.
It sounds like you haven't added any code to change databases at runtime. I suspect the code you thought you were running successfully in dev didn't work to switch DBs. It probably continued to connect to the dev DB.
Saving the original DB info is done by default for a Crystal Report .rpt file. Search the forum and read the developer SDK guide on how to change databases at runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moved to .NET Developer Forum, assuming you are using .NET and CR assemblies.
Paste in your code to set logon and table location so we can see what you are doing.
Thank you
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.