How do we return a record set from a Stored Procedure in SQl
server 2000?
Answers were Sorted based on User's Feedback
Answer / madhu
SQL Server stored procedures can return multiple record
sets. The following is an example:
CREATE PROCEDURE procCustomerGet
@CustomerID VarChar(5)
AS
SELECT * FROM Customers
WHERE CustomerID =
@CustomerID
SELECT * FROM Orders
WHERE CustomerID =
@CustomerID
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sandeep modapathi
using cursor datatype
declare an output data type
@my_cursor CURSOR VARYING OUTPUT
Is This Answer Correct ? | 0 Yes | 0 No |
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
What is surrogate key? : sql server analysis services, ssas
What is a natural primary key?
What are the restrictions that views have to follow?
Delete duplicate records from the table?(Table must have unique id)
7 Answers TCS, Thomson Reuters,
Tell me what is a linked server?
Define cursor locking
What are the 2 types of classifications of constraints in the sql server?
What is self contained multi valued query?
How to fetch the next row from a cursor with a "fetch" statement?
How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?
what command is used to create a table by copying the structure of another table?