Static Cursor
What is static cursor in SQL Server, and why we use it instead of using scroll cursor?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 16, 2012, 7:45 PM EDT
Static cursor - The complete result set of a static cursor is built in tempdb when the cursor is opened. A static cursor always displays the result set as it was when the cursor was opened. If any data is inserted after the cursor is opened, the cursor will not be fetching the new records. SQL Server static cursors are always read-only. Because the result set of a static cursor is stored in a work table in tempdb, the size of the rows in the result set cannot exceed the maximum row size for a SQL Server table.
Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 16, 2012, 9:30 PM EDT
Please refer the below links
http://msdn.microsoft.com/en-us/library/ms191286%28v=sql.105%29.aspx
http://www.dotnet-tricks.com/Tutorial/sqlserver/RLID060512-SQL-Server-Different-Types-of-Cursors.html
Thanks
If this post helps you mark it as answer