Explain the types of cursors in SQL server:
978
24-Sep-2019
Updated on 16-Sep-2020
Anonymous User
24-Sep-2019Types 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.