Cursors in SQL Server 2005 database -


i working cursors , executed in t-sql , database use microsoft sql server 2005.

my query after execute cursor, output shown in message area. when deallocate cursor using deallocate <cursor name> gets deallocated. again execute cursor. in message area this:

"command(s) completed "

and not getting output of cursor. resolve, copied cursor code , opened new query area , pasted there. works perfect first time. when rerun cursor, same message displayed in message area.

how re-execute same cursor code in same window rather creating new sql window?

without seeing code hard wrong, know cursors code of last resort , can done less code , faster performance using method. see link ideas of better ways handle task:

http://wiki.lessthandot.com/index.php/cursors_and_how_to_avoid_them


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -