O'Reilly logo

Guru's Guide to SQL Server Architecture and Internals, The by Ken Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Recap

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required