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 |
What is row_number()?
Would it be a good idea to create an index on a table that always contains 10 records? Why or why not?
How to turn off warning messages during php execution?
What are the differences between user defined functions and stored procedures?
What is stretch database in sql server?
What is normalization of database? What are its benefits?
what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
How to delete all rows with truncate table statement in ms sql server?
What is truncate table?
What is the default sql server instance name?
List the ways in which dynamic sql can be executed?
What is update_statistics command?