Don't have Telegram yet? Try it now!
http://www.techmixing.com/2011/07/cursor-in-sql-server.html
Cursor in SQL server