if exists(select * from information_schema.schemata where catalog_name='Your Database') print 'yes' else print 'no'
قوانین سایت