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!

'Server has not yet been opened' error message

Status
Not open for further replies.

selvirino

Programmer
Jun 18, 2001
17
US
I am attempting to run a simple report through ASP (ActiveX report viewer & RDC) connected to a SQL Server 2000 stored procedure. The code fails on the following line:

session("oRpt").ReadRecords

And I receive the following error message:

Server has not yet been opened.

The report runs fine in the Crystal Reports development GUI. The stored procedure is fairly simple, and requires one parameter. There are no subreports.

Any help will be most appreciated.

Greg
 
I ran into this problem and it took me a long time to figure out.

My problem was that I wasn't setting the logon info for the tables I was trying to access.

I don't know how this applies to using a stored procedure, but I had to do this:

Report.Database.Tables.Item(1).SetLogonInfo <server> <database> <user> <pass>

Then my problem went away.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top