Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Problem with returning multiple recordsets from a stored procedure


Message #1 by "Jason L. Tienor" <jtienor@m...> on Wed, 21 Feb 2001 22:55:36
Hi all,



I am attempting to follow an example that I found on ASPFaq.com and am 

having troubles with returning multiple recordsets from a stored procedure 

execution.  The specific code is as below.



<%

    OrderNumber = "4"

 

    sql = "EXEC sp_DeleteOrder"

    sql = sql & " @OrderNumber ='" & FixString(OrderNumber) & "'"

 

    set conn = server.createobject("adodb.connection")



    conn.open Application("db_ConnectionString")

    set rs = conn.execute(sql)

        

    set rs = rs.NextRecordSet()

    Response.write(rs(0) & " rows deleted.")

    rs.close: set rs = nothing



  conn.close: set conn = nothing

%>

  Any help given would be greatly appreciated,



Thank you,



Jason L. Tienor

Interactive SolutionZ, LLC 

  Return to Index