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 to drop existing indexes in ms sql server?
What samples and sample databases are provided by microsoft?
What is the difference between lock, block and deadlock? : sql server database administration
What is referential integrity and how is it achieved?
What is named query? : sql server analysis services, ssas
How to disconnect from a sql server using mssql_close()?
What is the filtered index?
What is inline variable assignment?
How to test a dml trigger in ms sql server?
You want to implement the many-to-many relationship while designing tables. How would you do it?
What are the default system databases in sql server 2000?
how to find the particular row in table?(means suppose one table contain 10 rows , in these 10 rows how to find the particular row(example in 10 rows i want 5 row how)?
16 Answers Accenture, IBM, Marlabs,
Oracle (3259)
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)