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

Is sql server is free?

970


Explain transaction server auto commit?

1029


What are the security related catalog views? : sql server security

940


Mention the 3 ways to get a count of the number of records in a table.

974


What is tempdb database? : SQL Server Architecture

1178


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

2751


What is the name of reporting services config file and what’s it’s used for?

146


How do you create a data source?

899


What number aggregate functions are accessible there in sql?

1065


How to find the version of sql server? : sql server database administration

1099


Explain collation?

1054


Can binary strings be converted into numeric or float data types?

1021


How you can change a cross join into an inner join?

956


you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation

934


How do users use Report Builder with SQL Server data sources?

152