What are cursors? Name four types of cursors and when each
one would be applied?

Answer Posted / basha

Following are different types of cursors available in SQL Server 2005 :

Base table
Static
Dynamic
Forward-only/Read-only
Keyset-driven

Base table: Base table cursors are the lowest level of cursor available. Base table cursors can scroll forward or backward with minimal cost, and can be updated

Static: Cursor can move to any record but the changes on the data can’t be seen.

Dynamic: Most resource extensive. Cursor can move anywhere and all the changes on the data can be viewed.

Forward-only: Cursor moves one step forward, can’t move backwards.

Keyset-driven: Only updated data can be viewed, deleted and inserted data cannot be viewed.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain magic tables in sql server?

627


What is normalization? Explain different forms of normalization?

613


What is a raid and what are different types of raid configurations?

728


What are the five major components of a dbms?

592


What is dirty page?

641






What is the function of sql server agent windows service?

623


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

745


What are subquery and its properties?

642


What is a synonym for manipulation?

640


Do you know sql server 2008 introduces automatic auditing?

599


What is the new security features added in sql server 2014? : sql server security

650


Can you name a few encryption mechanisms in sql server?

598


Does a full backup include transaction log?

567


What is the difference between DataRow.Delete() and DataRow.Remove()?

835


Explain primary key and foreign key constraints?

594