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!

CRecordset and Stored Procedures

Status
Not open for further replies.

unseth

Programmer
Sep 10, 2000
31
US
I'm working with Stored Procedures and CRecordset.

I'm just trying to figure out the syntax. I finally figured out the syntax to the SPO but I can only get the one to work that doesn't take input.

For example:

strSQL = "{CALL spotest}";
rs->Open(CRecordset::dynaset, strSQL, CRecordset::readOnly);

this one works fine. My next one takes input, so

strSQL = "{CALL getFilings '22,41','2000-01-01','2000-01-31','3,1,2','',''}";

that one doesn't work. I get an error. Are the input fields supposed to be passed in differently or is it something else I'm doing wrong?

thanks
 
i figured it out.

thanks.

You need parenthesis. So it should be:

strSQL = "{CALL getFilings ('22,41','2000-01-01','2000-01-31','3,1,2','','')}";

what a pain in the arse.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top