Thursday, January 21, 2016

How to exit from SP with out running



EX: I have SP:

BEGIN

PRINT 'you have bad input'
RETURN

END

to exit with out running SP




BEGIN

RETURN---- the SP will exit here
PRINT 'you have bad input'

END




No comments:

Post a Comment

https://blog.sqlauthority.com/2009/06/27/sql-server-fix-error-17892-logon-failed-for-login-due-to-trigger-execution-changed-database-context...