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 |
Can we create a clustered index on composite primary key.
write down the sql query? Table Name : emp1 empid empname 1 bala 2 guna Table Name : emp2 empid empname 1 <Null> 2 <Null> Solution : emp1 names are updated in emp2, write a query?
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
Why is DML provided?
1 Answers Ernst Young, Thomson Reuters,
How to list all columns in a table using odbc_columns()?
What is the order in which the sql query is executed?
could u plz explain about joins and views?
What is the difference between Clustered and Non-Clustered Index?
Explain Geography datatype in SQL Server
Give some Scenario for Non Clusterd index? Can we write system defined functions in side The Function? Wat is the Unique Datatype?
Can multiple columns be used in sql group by clause in ms sql server?
How is foreign key related to primary key?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)