How do we return a record set from a Stored Procedure in SQl
server 2000?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to invoke a trigger on demand? : Sql server database administration

563


How many databases can we create in a single server?

187


What do you understand by replication in sql server?

569


What sql server means?

555


Can you get second highest salary from the table?

551






Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio

521


What command would you use to create an index?

586


How you provide security to cube? : sql server analysis services, ssas

535


Explain what is the main purpose of having conversation group?

519


Explain the difference between primary keys and foreign keys?

509


What is report server project?

106


What is the benefit of normalization?

587


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

569


How many replicas are maintained for each sql azure db?

105


please differentiate between delete and truncate?

558