How many types of cursors are there in SQL Server?

Answer Posted / sandip borkar

There can be 7 types of Cursors in SQL Server
1] Dynamic : Scrollable. Its slowest, and sensitive to all changes in resultset.
2] Keyset : Scrollable. Its slow but faster than Dynamic.Sensitive to Changes like updation and deletion but not insertion
3] Static : Its srollable and faster than both above. We can move forward and backward, but changes are not visible
4] Forward_Only Dynamic : Its not scrollable, but sensitive to changes.
5] Forward_only keyset : Its not scrollable, but sensitive to updation and deletion in resultset but not insertion. We can only move forward and not backward.
6] Forward_only Static : Not sensitive to changes not scrollable.
7] Fast-forward : fastest among all.

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me about joins in database system and explain each in detail.

602


System requirements for sql server 2005 express edition?

572


What is data mart? : sql server analysis services, ssas

600


What is Cross Join and in which scenario do we use Cross Join?

576


What are information schema views?

559






Explain different types of locks in sql server.

602


What is difference between primary key and foreign key?

484


what are the types of indexes? : Sql server database administration

602


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

678


How to create a view with data from multiple tables?

563


What is RAID? What are the different types of RAID configurations?

619


Explain cross join or cartesian product in sql?

546


How to rename an existing table with the "sp_rename" stored procedure in ms sql server?

544


How to round a numeric value to a specific precision?

573


Difference between LEN() and DATALENGTH() in sql server ?

596