(This example uses Jscript instead of VBscript)
Here's my situation.
When I call a stored procedure that returns a result this is how I usually pull the info:
This works fine for a stored procedure that only returns one recordset. However, if I had a stored procedure that produced the following output then I do not get all the information:
With the actual test I did my page returned nothing. However, the first recordset returned in my test produced 0 rows, so I'm guessing it only read from the first recordset returned. Anybody know how I can retrieve all info returned from this stored procedure?
-kaht
[small]How spicy would you like your chang sauce? Oh man... I have no idea what's goin' on right now...[/small]
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
Here's my situation.
When I call a stored procedure that returns a result this is how I usually pull the info:
Code:
var strConn = "Provider=SQLOLEDB;Data Source=servername;Initial Catalog=catalogname;User Id=userid;Password=password";
var oConn = Server.CreateObject("ADODB.Connection");
oConn.Open(strConn);
var blah = oConn.Execute("storedProcedureName");
while (!blah.EOF) {
Response.Write(blah("VP_NAME").value + " " + blah("LEVEL3_NAME").value + "<br />");
blah.MoveNext;
}
This works fine for a stored procedure that only returns one recordset. However, if I had a stored procedure that produced the following output then I do not get all the information:
Code:
VP_NAME LEVEL3_NAME
---------------------------------------- ----------------------------------------
mr vice president ms level 3 person
mr vice president ms level 3 person
VP_NAME LEVEL3_NAME
---------------------------------------- ----------------------------------------
mr vice president ms level 3 person
-kaht
[small]How spicy would you like your chang sauce? Oh man... I have no idea what's goin' on right now...[/small]
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)