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 happens if strings are casted into wrong code pages in ms sql server?

1057


Explain what is cte (common table expression)?

1059


What is sqlcmd?

955


What the different components of Replication and what is their use?

1012


How you can get the list of largest tables in a database?

939


Explain different types of locks in sql server.

1005


Give a example to search fr a string in all stored procedure in sql server.

906


What is bookmark link in ssrs?

232


Explain candidate key, alternate key, and composite key?

936


Does full backup break log chain?

909


What is acid db?

837


Tell me something about security and sql azure?

114


How to provide column names in insert statements in ms sql server?

1071


If user is owning any SQL Objects, can we drop that user

2002


How to select true false based on column value in sql server?

947