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!

Recordset Issue

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
I have a scrollable record set:
Set RS = Server.CreateObject("ADODB.Recordset")
RS.Open SQL, DB, adOpenKeySet

It works fine when I run regualr ad hoc queries, but it does not work for stored procedures... and one know how to help?
 
You need to use slightly different code for stored procedures using the command object

dim objcommand

set objcommand = server.createobject("adodb.command")
objcommand.commandtext = "yourprocedurename"
objcommand.commandtype = adcmdstoredproc
set rs = objcommand.execute

you could change your code to trap whether it is a query or stored proc and run the relevant bit of code

Andy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top