How many types of cursors are there in SQL Server?
Answer Posted / santosh kumar sharma
There are 4 types of cursor.
1) Static: Cursor can move to any record but the changes on
the data can't be seen.
2) Dynamic: Most resource extensive. Cursor can move
anywhere and all the changes on the data can be viewed.
3) forward-only: Cursor moves one step forward. Can't move
backwards.
4) Key setdriven: Only Updated data can be viewed. Deleted
and Inserted data cannot be viewed.
| Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
What is explicit cursors?
How do I clean up sql server transaction log?
Tell me what is fill factor?
Difference between report and query parameter. Why do we need different type of parameter?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
Mention the differences between local and global temporary tables.
What are the differences between clustered and non-clustered index?
How to create and drop temp table in sql server?
What is GUID in sql server?
How dts is used to extract, transform and consolidate data?
What do we need queues in sql service broker?
You are creating an application where users are asked their gender in the gender combo box you have three options: ‘male’ , ‘female’ and ‘i choose not to disclose’ these options are stored in the table as 1, 0 or null which datatype should you use?
Explain optimistic and pessimistic concurrency?
What is logon trigger?
What are the differences between stored procedure and view in sql server?