We need to perform what steps in the following order to work with a cursor?
Answer / Mukul Kumar
To work with a cursor in SQL Server, you must follow these steps:
1. Declare the cursor using the DECLARE statement.
2. Open the cursor using the OPEN statement.
3. Fetch rows from the cursor using the FETCH statement.
4. Optionally, perform operations on the fetched row(s).
5. Close the cursor using the CLOSE statement.
6. Deallocate the cursor using the DEALLOCATE statement.
| Is This Answer Correct ? | 0 Yes | 0 No |
What happens when transaction log is full?
Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?
Do you know what is difference between stored procedure and user defined function?
What is a fill factor?
Can sql server be linked with other servers like oracle?
What is xdr?
Does hive support indexing?
Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
Can we use where and having clause together?
Tell me what is the stuff and how does it differ from the replace function?
How can your resolve deadlocks?
4 Answers IBM, IMS, Iron Mountain, NuWare,
Why the trigger fires multiple times in single login?
Oracle (3253)
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)