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 |
How do you find value of first column before inserting value into the second column in the same table for checking that second column must have different value than first column.
How to create a scrollable cursor with the scroll option?
List some of the rules that apply to creating and using a ‘view’
How create table structure only from tableA to TableB if TableA have some data?
What is the query and subquery?
Can we perform backup restore operation on tempdb?
What are the different types of replication you can set up in sql server?
Are connections to sql server encrypted?
Explain system scalar functions?
How efficient you are in oracle and SQL server?
What are the advantages dts has over bcp?
What is the impact on other user sessions when creating indexes?