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 order of B+tree?
What is database normalization?
7 Answers Deloitte, Digicel, JPMorgan Chase, Verifone,
How do I view a trc file?
Explain the difference between function and stored procedure?
List out the differences between the clustered index and non-clustered index in sql server?
How do we rollback the table data in SQL Server
You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?
What is Right Outer Join?
What is onf in normalization form?
What do u mean by orphan users, how will u list them in the DB
What is schemabinding a view?
What is the difference between varchar and varchar(max) datatypes?
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)