Getting Multiple Recordsets from an SP

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Getting Multiple Recordsets from an SP

    I am using ASP 3.0/ADO to call an SP. The SP has multiple SELECT statements
    so I
    need to get the multiple return sets but I cannot find the right syntax. I
    searched BOL and Google but cannot find an example that applies. Some
    articles imply to use GetNextResult while others suggest GetNextRS.

    I use set myRS = myConn.execute("EXEC " & strTemp) to call the SP. What is
    the correct syntax to get the next resultset?

    Wayne


    Wayne Wengert Guest

  2. Similar Questions and Discussions

    1. Multiple Recordsets
      OK, I know there has to be a better way to do this, hopefully someone can shed some light on this subject. Using SQLServer 2000 and VBscript...
    2. Multiple paged recordsets
      Does anyone know how to place two or more INDEPENDENTLY PAGEABLE different sized recordsets on the same output page using DM8/ASP? I have created...
    3. Multiple Recordsets and Stored Procedure
      I'm using a stored procedure that returns multiple recordsets (it contains multiple select statements) in a vb.net dev environment. The problem is...
    4. Multiple recordsets?
      Hey all I'm not sure if there's anything that can be done about this or not. I'm displaying the contents of two different tables (using Access for...
    5. Should open multiple recordsets, or just one?
      Hi, I find myself once again returning to a problem project I have been so far unable to finish... I have a table of teaching session data and...
  3. #2

    Default Re: Getting Multiple Recordsets from an SP

    Here's an example:
    [url]http://www.devguru.com/Technologies/ado/quickref/recordset_nextrecordset.html[/url]

    Ray at work

    "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
    news:%23YiF%23guoDHA.2868@TK2MSFTNGP09.phx.gbl...
    > I am using ASP 3.0/ADO to call an SP. The SP has multiple SELECT
    statements
    > so I
    > need to get the multiple return sets but I cannot find the right syntax. I
    > searched BOL and Google but cannot find an example that applies. Some
    > articles imply to use GetNextResult while others suggest GetNextRS.
    >
    > I use set myRS = myConn.execute("EXEC " & strTemp) to call the SP. What
    is
    > the correct syntax to get the next resultset?
    >
    > Wayne
    >
    >

    Ray at Guest

  4. #3

    Default Re: Getting Multiple Recordsets from an SP

    Thanks Ray - that is what I needed. It works fine now.

    Wayne


    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:ORqKTkuoDHA.2584@TK2MSFTNGP09.phx.gbl...
    > Here's an example:
    >
    [url]http://www.devguru.com/Technologies/ado/quickref/recordset_nextrecordset.html[/url]
    >
    > Ray at work
    >
    > "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
    > news:%23YiF%23guoDHA.2868@TK2MSFTNGP09.phx.gbl...
    > > I am using ASP 3.0/ADO to call an SP. The SP has multiple SELECT
    > statements
    > > so I
    > > need to get the multiple return sets but I cannot find the right syntax.
    I
    > > searched BOL and Google but cannot find an example that applies. Some
    > > articles imply to use GetNextResult while others suggest GetNextRS.
    > >
    > > I use set myRS = myConn.execute("EXEC " & strTemp) to call the SP. What
    > is
    > > the correct syntax to get the next resultset?
    > >
    > > Wayne
    > >
    > >
    >
    >

    Wayne Wengert Guest

  5. #4

    Default Re: Getting Multiple Recordsets from an SP

    [url]www.aspfaq.com/2201[/url]



    "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
    news:#YiF#guoDHA.2868@TK2MSFTNGP09.phx.gbl...
    > I am using ASP 3.0/ADO to call an SP. The SP has multiple SELECT
    statements
    > so I
    > need to get the multiple return sets but I cannot find the right syntax. I
    > searched BOL and Google but cannot find an example that applies. Some
    > articles imply to use GetNextResult while others suggest GetNextRS.
    >
    > I use set myRS = myConn.execute("EXEC " & strTemp) to call the SP. What
    is
    > the correct syntax to get the next resultset?
    >
    > Wayne
    >
    >

    Aaron Bertrand - MVP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139