October 2003
Intermediate to advanced
1072 pages
24h 21m
English
Cursors are not the recommended way to solve most data access or update problems, and they can cause serious performance headaches when used improperly. Your first thought (before using Transact-SQL) when contemplating how to solve a problem you have seen should be to align your code with the way SQL Server was designed to work—that is, to access data in sets if at all possible. Resort to using cursors only after you've explored as many set-based alternatives as possible.
Read now
Unlock full access