changing databases in odbc doesnt change database in report 
Author Message
 changing databases in odbc doesnt change database in report

I have a vb program using crystl32.ocx. All reports are setup using an odbc
connection to sql server 7. I want to be able to change the database that
the reports are pointing to at run time (both databases have the same
structure and are on the same server).
Just changing the database in the odbc doesnt work, unless each report is
reset using Set Location.

Any suggestions?
Thanks

Ann



Sat, 21 May 2005 18:42:45 GMT  
 changing databases in odbc doesnt change database in report
In Sql Server, every table saved in Crystal Report is denoted with
DatabaseName.OwnerName.TableName.

So, changing the database in ODBC will not change the tables location in
crystal report.

If you were using Access Database, then you could achieve your goal without
having to set the location again and again.

Best Regards,

Luqman


Quote:
> I have a vb program using crystl32.ocx. All reports are setup using an
odbc
> connection to sql server 7. I want to be able to change the database that
> the reports are pointing to at run time (both databases have the same
> structure and are on the same server).
> Just changing the database in the odbc doesnt work, unless each report is
> reset using Set Location.

> Any suggestions?
> Thanks

> Ann



Mon, 23 May 2005 20:44:02 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Changing a report that uses 1 database into a report using 2 databases

2. Changing database name in ODBC User DSN

3. need help with change password for ODBC database.

4. Changing ODBC Databases at runtime

5. Changes to Display values w/o changing database values

6. Change language setting to ..., Change default database to ...

7. Data Environment / Data Report / Changing database file at run time

8. Crystal Reports GPF after changing database structure

9. Changing Database with Crystal Reports 2.0

10. Crystal Report Database-Change

11. changing a report database from Access97 to Access 200

12. Programatically Changing Database Name for Report

 

 
Powered by phpBB® Forum Software