Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the system database in sql server 2005?

1044


What is scrollable cursor?

1041


What are the acid properties?

1005


Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.

1033


Explain what is the main purpose of having conversation group?

940


What is master database? : SQL Server Architecture

1019


Explain sub-query?

954


What is default constraint?

995


What do you mean by sql server agent?

990


Mention the differences between sql server and mysql.

1014


How to check parameter value in stored procedure sql server?

973


What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?

1135


Explain what is log shipping?

1136


How to list all login names on the ms sql server?

1142


What is SQL Azure?

107