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 accessing SQL Server

Status
Not open for further replies.

jbradley

Programmer
Sep 7, 2001
248
US
I'm trying to migrate to SQL from Access. I got my data moved and started changing the database location of my reports to the new database on the SQL server.

The reports are viewed from a VB application that passes the selected report to the CR Viewer. When I try to view the reports that point to the SQL server I get the "Server has not yet been opened" error.

Can I store the logon information in my report, or how do I pass it in from VB (I want to use "Trusted Connection")?
 
Hi,

i encounterd the same error. when i set the logon info it is working fine.
try something like this

crviwer.SetLogonInfo "(ServerName)", DBNAME, cstr(UID), cstr(PWD)

Hope it may helps you.

chandhureddy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top