SQL Server Cursor Types - Static Cursor | SQL Server Tutorial

preview_player
Показать описание
Cursors are the objects those allow us to access the data row by row from result set.

Static Cursor make the copy of result set in memory at time of cursor creation and use that temporary result set to return rows. If any changes are made to original table/s data such as insert, update or delete. The Static cursor does not update stored result set with those changes unless we close the cursor and reopen.

Static Cursors are scrollable (First,Last,Prior,Next,Relative,Absolute)

Blog post link for this video with scripts
Рекомендации по теме
Комментарии
Автор

Amir sir, I run the same sql query from your blog in in SSMS 2014. But this statement RAISERROR (' ', 0, 1) WITH NOWAIT is not printing the text immediately like Its happening for you. For me all the text i.e CURSOR IS OPEN and next rows are getting displayed a same time after the total time delay. Please help me how to showcase like have done here (printing immediately with the delay in the screen)

pravaspatra