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 the boxing and unboxing concept in .net?
What are the different acid properties?
What is a partitioned view?
Is the order of columns in the set clause important in ms sql server?
what are the different types of replication you can set up in sql server? : Sql server database administration
Explain the truncate command?
What is meant by Active-Passive and Active-Active clustering setup?
How to drop an existing table?
What is a transaction and why is it important?
What are the differences between user defined functions and stored procedures?
What is Schema in Database?
1 01 101 01010
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)