建 表(库) 时先判断表是否存在 再决定建表
use 数据库名
if exists ( select *
from sysobjects
where name = '表名'
and type = 'U')
print 'you'
else print 'no'
go
if exists ( select * From master.dbo.sysdatabases
where name='sessrverweb')
print '存在'
else print '不存在'