Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Crystal Reports dsr file without using ODBC

Status
Not open for further replies.

awhitsel

Programmer
Feb 22, 2001
80
0
0
US
I have an application written in VB5 that contains two CR9 report files imbedded as designer (.dsr) files.

We have discovered that these CR9 files are linked to the SQL Server database using an ODCB connection.

Is there any way to link the database to these two reports without using an ODBC connection?

Please advise.

Thanks.
 
When you open one of the .dsr's and right click in some white space > Database > 'Set Datasource Location' option. You can then browse to the 'new' datasource (in the bottom half of the window), then click the 'Update' button.

-dave
 
So, does that mean if we want to access the SQL Server database without using a DSN, we would need to connect to an ODBC connection??

How do we connect to the SQL Server without using a DSN?
 
Your options to connect to SQL Server with CR 9 are ODBC and OLEDB. It sound like you want to switch to OLEDB. You can either send ADO recordsets to the reports at runtime, or specify the server/db at runtime. I've got a FAQ that details the latter, here: faq768-5374

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top