• Great article.  A lot of people make the mistake of trying to use SQL as a procedural language instead of a declarative language.  It's hard for some to think in terms of SQL set-based statements as opposed to iterative looping and cursors.

    I'd estimate that cursors could be eliminated and replaced with set-based SQL statements 99.9999% of the time that they are used.