Exit From sp

  • How do I exit from a sp when a certain condition is reached? I have an IF statement and want to return a value if the criteria is met and to exit the sp at that point rather than continuing with the remainder of the sp?!

  • RETURN ?

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply