判断MSSQL表/存储过程/视图是否存在
					当前位置:点晴教程→知识管理交流
					
					→『 技术文档交流 』
					
				 
				
 1).判断用户表是否存在 
 程序代码 if exists (select top 1 * from sysobjects where id = object_id(N'[所有者.]表名') and type='U') 2).判断临时表是否存在  程序代码 if object_id('tempdb..##temp') is not null 3).判断存储过程是否存在  程序代码 if exists (select top 1 * from sysobjects where id=object_id('[所有者.]存储过程名') and type='P')  4).判断视图是否存在  程序代码 if exists (select top 1 * from sysobjects where id=object_id('[所有者.]视图名') and type='V') 该文章在 2011/3/14 14:04:52 编辑过  | 
		
			 关键字查询 
				相关文章 
				正在查询...  |