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

Describe and explain about SQL native client?

786


Does sql server 2000 clustering support load balancing?

732


What are the differences between DDL, DML and DCL in SQL?

941


Define full outer join?

700


How to enter unicode character string literals in ms sql server?

749






How do I perform an unattended install of sql server 2000?

757


What is a fan-out query in SQL Azure?

115


What is difference between group by and having?

720


What is not null constraint?

814


What do you mean by acid?

758


How can we delete a table in sql server?

718


What are the advantages of using third-party tools?

720


What is the boxing and unboxing concept in .net?

706


Can group by be used without aggregate functions?

674


What is the current limitation of the size of SQL Azure DB?

120