MSDN about stored procedure default return value
        Posted  
        
            by Ilya
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ilya
        
        
        
        Published on 2010-04-05T13:17:46Z
        Indexed on 
            2010/04/05
            13:23 UTC
        
        
        Read the original article
        Hit count: 352
        
Hello,
Could anyone point exactly where MSDN says thet every user stored procedure returns 0 by default if no error happens? In other words, could I be sure that example code given below when being a stored procedure
IF someStatement
BEGIN
  RETURN 1
END
should always return zero if someStatement is false and no error occurs?
I know that it actually works this way, but I failed to find any explicit statement about this from Microsoft.
© Stack Overflow or respective owner