Dynamic Cursor
What is dynamic cursor in sql?and in which conditions we use it?
4 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
Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 16, 2012, 9:20 PM EDT
Please refer the below links
http://msdn.microsoft.com/en-us/library/ms189099%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
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 16, 2012, 7:55 PM EDT
Static cursors are the cursors that store complete resultset in tempdb when the cursor is opened. But, it will not fetch the results that are inserted after the cursor is opened. Dynamic cursors gets all the changes by scrolling the data one by one so that any new inserted data still be fetched by the dynamic cursor.
Deepak MiddhaRank #214 · 11.3K reputationPosted Sep 17, 2012, 1:04 AM EDT
Rajeev KumarRank #1,334 · 1.3K reputationPosted Feb 27, 2023, 2:21 AM EST
The SQL Dynamic Cursors are exactly opposite to Static Cursors. You can use this SQL Server Dynamic cursor to perform INSERT, DELETE, and UPDATE operations. Unlike static cursors, all the changes made in the Dynamic cursor will reflect the Original data.