摘要: SQL Server中判断数据库是否存在: 法(一): select * From master.dbo.sysdatabases where name='数据库名' 法(二): if db_id('数据库名') is not null drop database 。。。 go create 。。。SQL Server中判断表对象是否存在: select count(*) from sysobjects where id = object_id('数据库名.Owner.表名') if exists (select count(*) from s. 阅读全文
posted @ 2012-04-23 15:52 CarrieU 阅读(454) 评论(0) 推荐(0)