现在的位置: 首页 > 综合 > 正文

如何判断一个存储过程是否存在

2013年08月21日 ⁄ 综合 ⁄ 共 100字 ⁄ 字号 评论关闭

if object_id('proc1','p') is not null 则proc1存在

if exists (select 1 from sysobject where name='proc1' and xtype='p')

抱歉!评论已关闭.