SQL Server 2000/2005 detecting the stored procedure name exists, there is a deleted

IF OBJECT_ID ( 'pr_DictDel', 'P' ) IS NOT NULL
    Drop PROCEDURE pr_DictDel;
GO

Reproduced in: https: //www.cnblogs.com/zhangchenliang/archive/2007/05/05/736685.html

Guess you like

Origin blog.csdn.net/weixin_33998125/article/details/93495920