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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to SQL with CR8 Through web

Status
Not open for further replies.

mickyd

Programmer
May 4, 2001
29
CA
When viewing a report on the web, I can only do so if the data has been saved with the report. Otherwise, I get an error stating 'Server has not yet been opened' or if I specify not to save the data with the report, I get the error "An Error has occured on the server in attempting to access the data source".

In order to avoid DSN's on the server, we usually use an include file which contains the connection information - for example:
set Conn = "Server.CreateObject("ADODB.Connection")
Conn.Open "Driver=SQL Server;Server=database servername;Database=database name;Trusted_Connection=yes;wsid=code server name;application=application name"

To create the report, I just connect to the database as through Crystal Reports but not via a DSN.

Can anyone help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top