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

ERROR 599 CANNOT OPEN SQL SERVER

Status
Not open for further replies.

jmcalis

Programmer
Oct 23, 2000
1
US
RECEIVING THIS ERROR WHEN ATTEMPTING TO RUN REPORT FROM COLDFUSION. MY SQL SERVER IS ON ANOTHER SERVER BUT HAVE AN ODBC CONNECTION TO IT. ANY HINTS?
 
Your not logged into the server. You need to set login information to open the database. I code in VB so maybe this applies to Cold Fusion as well. It can't hurt to try.
(This is the CR8 Automated Server application.)

Declare variables for CR8 however its done in CF:
Global CA As CRPEAuto.Application
Global CR As CRPEAuto.Report
Global DbName As CRPEAuto.Database
Global DbTbls As CRPEAuto.DatabaseTables
Global DbTbl As CRPEAuto.DatabaseTable
(this is VB code)

Next, set your application and open your report:

Set CA = CreateObject("Crystal.CRPE.Application")
Set CR = CA.OpenReport(Report Location and Name)

Next, set your database name and tables:
Set DbName = CR.Database
Set DbTbls = DbName.Tables
Set DbTbl = DbTbls.Item(1)

Next, Logon to server
Call DbTbl.SetLogOnInfo(server ID, "", User ID, PassWord)

Next, preview report.
CR.Preview

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top