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 do you understand by physical_only option in dbcc checkdb?

935


how to use DTS package in 2000,2005,2008 in sql server

1787


How do I run sql server 2014?

940


Tell me something about security and sql azure?

114


What is the difference between index seek vs. Index scan?

973


What are the triggers in sql?

1021


How to enable tcp/ip protocol on a sql server?

1094


What are the types of lock supported by ?

995


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2532


What is the default schema of your login session in ms sql server?

996


Is it possible to call a stored procedure within a stored procedure?

917


How to drop an existing stored procedure in ms sql server?

965


What are the main sources of data?

1040


What is spid in sql server profiler?

1028


Will count(column) include columns with null values in its count?

1035