At times you may need to sequentially loop through some specific result set for performing some action on individual record at a time. Using SQL cursor is a choice. But, for optimal performance and to avoid potential problems, as a recommended best practice, cursors should be avoided as much as possible in T-SQL code. But […]