Alter stored procedure if condition is met

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-04-20T18:12:29Z Indexed on 2010/04/20 18:23 UTC
Read the original article Hit count: 217

Filed under:
|

I am looking to alter a stored procedure if a condition exists. I want to leave the stored procedure as is if the condition is not met, so drop/create is not really an option.

Trying to put the contents of ALTER PROC inside an IF block is throwing up errors for me. Any thoughts?

© Stack Overflow or respective owner

Related posts about t-sql

Related posts about sql-server