How do we return a record set from a Stored Procedure in SQl
server 2000?

Answers were Sorted based on User's Feedback



How do we return a record set from a Stored Procedure in SQl server 2000?..

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

How do we return a record set from a Stored Procedure in SQl server 2000?..

Answer / sd

Select select_list from my_tabel

Is This Answer Correct ?    0 Yes 0 No

How do we return a record set from a Stored Procedure in SQl server 2000?..

Answer / sandeep modapathi

using cursor datatype

declare an output data type
@my_cursor CURSOR VARYING OUTPUT

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

What is row_number()?

0 Answers  


Would it be a good idea to create an index on a table that always contains 10 records? Why or why not?

3 Answers  


How to turn off warning messages during php execution?

0 Answers  


What are the differences between user defined functions and stored procedures?

0 Answers  


What is stretch database in sql server?

0 Answers  






What is normalization of database? What are its benefits?

0 Answers  


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

0 Answers  


How to delete all rows with truncate table statement in ms sql server?

0 Answers  


What is truncate table?

0 Answers  


What is the default sql server instance name?

0 Answers  


List the ways in which dynamic sql can be executed?

0 Answers  


What is update_statistics command?

0 Answers  


Categories