How do we return a record set from a Stored Procedure in SQl
server 2000?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sandeep modapathi
using cursor datatype
declare an output data type
@my_cursor CURSOR VARYING OUTPUT
Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of CASCADE CONSTRAINTS?
What is conditional split?
hi... this is charan.I persued btech in 2010 looking for a job on database/back-end as freehser. can any seggest me which course or back-end tool i have to learn
how do u do Performance tunning ?
1 Answers Infodat Technologies, Satyam,
Is foreign key a primary key?
how will add additional conditions in sql?
0 Answers Amdocs, Apps Associates,
What is store procedure? When do you use?
What is the difference between left and right outer join?
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?
Write an SQL query to obtain the 2nd highest salary.
0 Answers Akamai Technologies,
Can Having clause be used without Group by clause?
6 Answers CarrizalSoft Technologies, CSC, CTS,
Why we are using the sql language?. What is the purpose of using this?