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!

ADO - StoredProc returning read/write recordset?

Status
Not open for further replies.

BeanDog

Programmer
Jul 15, 2000
60
US
How can I get an ADO Stored Procedure command to return a cursor that I can write to or add new records to? For instance, here's my old code:

set cmd = Server.CreateObject("ADODB.Command")
cmd.CommandType = adCmdStoredProc
cmd.ActiveConnection = dbads
cmd.CommandText = "qrysClients"
cmd.Parameters.Append cmd.CreateParameter("@pMasterID", adInteger, adParamInput, 0, master)
set qryClients = cmd.Execute

then if I try to do qryClients.AddNew or change a value in qryClients's fields collection, I get errors. How can I resolve this, short of using dynamic SQL queries generated at runtime? The way the code is structured, it would be unrealistic to try to implement a stored procedure to do the updating.



~BenDilts( void );

~BenDilts( void );
benbeandogdilts@cs.com
Long-time BASIC game programmer, Internet programmer and C++/DirectX of late.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top