在新建数据库的时候判断要建的数据库是否存在.
if(exists( select * from sys.databases where name='数据库名'))
beginprint '存在'
end
else
begin
print '不存在'
end
发布时间: 2012-11-16 14:12:15 作者: rapoo
在新建数据库的时候判断要建的数据库是否存在.
if(exists( select * from sys.databases where name='数据库名'))
begin