R
rn5a
Suppose a SQL Server 2005 stored procedure looks like this:
ALTER PROCEDURE SPName
@UserID int
SELECT COUNT(*) FROM Table1 WHERE UserID = @UserID
SELECT COUNT(*) FROM Table1
In the ASPX page, I can get the result of the first query in the above
SP using
While (sqlReader.Reader)
Response.Write(sqlReader.GetValue(0)
End While
But how do I get the result of the second query in the ASPX page?
ALTER PROCEDURE SPName
@UserID int
SELECT COUNT(*) FROM Table1 WHERE UserID = @UserID
SELECT COUNT(*) FROM Table1
In the ASPX page, I can get the result of the first query in the above
SP using
While (sqlReader.Reader)
Response.Write(sqlReader.GetValue(0)
End While
But how do I get the result of the second query in the ASPX page?