How many types of Cursor in SQL SERVER?
Answer / anindya basu
There are four types of cursor in SQL Server which are:
a. Static
b. Dynamic
c. Forward Only, and
d. Keyset
Static keysets aren't sensitive to database changes and are scrollable.
Dynamic keysets are sensitive to database changes and are scrollable.
Forward only keysets aren't sensitive to database changes and allows only forward scrolling of data. There are 3 variants of Forward Only cursors viz. Forward Only Static, Forward Only Keyset, and Fast Forward. Fast Forward is the fastest of all cursors.
Keyset cursor supports movement from the first row to the last and vice-versa. It doesn't identify inserts but recognizes both updates and deletes.
Is This Answer Correct ? | 0 Yes | 0 No |
What are the benefits of using stored procedures over sql statements?
What are the recovery models for a database?
What are the different Authentication modes in SQL Server and how can you change authentication mode?
what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
What is apply operator in sql?
What is cross join in sql server joins?
What is index?
WHAT IS THE DIFFERENCE BETWEEN CANDIDATE KEY ,COMPOSITE KEY AND PRIMARY KEY. THAN U.
What are recommended options to be used while using db mirroring? : sql server database administration
What are the properties of sub-query?
How do I know if localdb is running?