📜  sql server 2012 create or alter procedure - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:34.140000             🧑  作者: Mango

代码示例1
IF OBJECT_ID('spCallSomething') IS NULL
    EXEC('CREATE PROCEDURE spCallSomething AS SET NOCOUNT ON;')
GO

ALTER PROCEDURE spCallSomething ... 
--instead of DROP/CREATE