SQL Server Database Administrator Question: Download SQL Server DB Administrator PDF

How to create a Scrollable Cursor with the SCROLL Option?

Tweet Share WhatsApp

Answer:

Using the SCROLL keyword while declaring a cursor allows fetching of rows in any sequence
Example:
DECLARE employee_curs SCROLL CURSOR FOR SELECT * FROM employee;
The active set of the cursor is stored can be accessed in any order without the need of opening and closing the cursor. The Scroll cursors can be set for select and function cursors but not insert or update statements.

Download SQL Server DB Administrator PDF Read All 84 SQL Server DB Administrator Questions
Previous QuestionNext Question
How to control the amount of free space in your index pages?What is DBCC?