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

ADO record set based off a stored procedure

Status
Not open for further replies.

jimgardner

Programmer
Jun 2, 2001
1
US
I'm having difficulty getting a report to work when I'm using an ADO record set that is based off of a stored procedure.

The steps I'm using are as follows:

Set cmWolper = Server.CreateObject( "ADODB.Command")
Set cmWolper.ActiveConnection = oConn
cmWolper.CommandText = "test_s"
cmWolper.CommandType = adCmdStoredProc
Set session("oRs") = cmWolper.Execute

I am using the TTX database type with the report. The report works fine if I create the ADO record set manually within my ASP page.

Thanks,

Jim
 
I'm also having problems of this nature with the RDC, ASP, and a report with a TTX data source. I've tried absolutely everything - SetDataSource, SetPrivateData, AddADOCommand. Not only can I NOT get this to work with a simple SQL Server stored procedure, it generates a pretty weird CRAXDRT error '-2147192185' that has no reference here nor the Crystal Reports support site, if my command object contains parameter objects. Heck, I've even tried with all three connection types (OLE DB, OLE DB for ODBC, and ODBC).

I've checked all the FAQs, every single message in the Crystal Reports forums, and gone through every pertinent article on the Crystal Report site. I'm dying here. Can't anyone help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top