在新建数据库的时分判断要建的数据库是否存在
在新建数据库的时候判断要建的数据库是否存在.
print '存在'
end
else
begin
print '不存在'
end
if(exists( select * from sys.databases where name='数据库名'))
beginprint '存在'
end
else
begin
print '不存在'
end