• Sean Lange (5/1/2013)


    Edward-445599 (5/1/2013)


    Hi what’s the best to way to drop out of a cursor if a condition is meet?

    Many thanks

    Are you sure you even need a cursor? Given that you want to break out of one I am guessing you are doing some sort of RBAR processing. Maybe the best way out of your cursor is to not have one at all.

    +100

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service