摘要: 判断数据库是否存在 if exists (select * from sys.databases where name = '数据库名') drop database [数据库名] 判断表是否存在 if exists (select * from sysobjects where id = object_id(N'[表名]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [表名] 判断存储过程是否存在 if exists (select * from sysobjects wher 阅读全文
posted @ 2012-06-08 12:42 ~泡泡 阅读(182) 评论(0) 推荐(0)