Explain the types of cursors in SQL server:

Last updated:9/16/2020 3:35:17 AM

1 Answers

Anonymous User
Anonymous User

Types of cursors :

The Static Cursor – Makes a temporary copy of the data and stores in tempdb and any modifications on the base table do not reflected in data returned by fetches made by the cursor.

The Dynamic Cursor – Reflects all changes in the base table.

The Forward-only Cursor – specifies that cursor can only fetch sequentially from first to last.

The Keyset-driven – A Keyset is the set of keys that uniquely identifies a row is built in a tempdb.

Answer