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 are the problems in logshipping?
What are the advantages of partitioning?
how do you determine the Load performance of any query in sql server {example how do u determine performance of a select stmnt which returns Dynamically many no of records ... some times 100,1000,10000 etc., }
What is the difference between truncate and delete statement?
6 Answers CarrizalSoft Technologies, CTS,
What is a view?
What is partition, how will you implement it? : sql server analysis services, ssas
How optimize sql query with multiple joins in sql server?
What are diverse clauses that form a part of sql?
Can you get second highest salary from the table?
Explain user defined views?
How to maintain a fill factor in existing indexes?
How do I find my localdb version?