摘要: 1. 判断存储过程是否存在if exists(select 1 from sysobjects where id=object_id('所有者.存储过程名') and xtype='P')IF EXISTS(SELECT 1 FROM sys.procedures WHERE name='deletefile')2.查找视图是否存在IF EXISTS(SELECT 1 FROM sys.views WHERE name='Schools')2.sp_executesql 用法DECLARE @tbname nvarchar(20) 阅读全文
posted @ 2013-05-20 18:48 tinaleft 阅读(168) 评论(0) 推荐(0) 编辑