Result Set Stored Procedure Sql Server. The result set RS returned to the caller consists of rows from 6 through 100 of RS and the cursor in the caller is positioned before the first row of RS. The procedure returns to its caller.
SQL Servers next version Denali is coming up with a very interesting feature called WITH RESULT SET. MULTIPLE RESULT SET FROM SQL SERVER STORED PROCEDURE. To change the column name and column data type at runtime while executing a stored procedure.
There was a recent question asked on Stack Overflow.
In the first step create a fresh copy of the stored procedure with a select statement that generates a results set whose output you want to persist. Here are some samples for SQL Server and Oracle 10g. Uses of Execute WITH RESULT SETS in SQL Server. Retrieve the results of executing a stored procedure in.