Groups | Blog | Home
all groups > sql server mseq > august 2003 >

sql server mseq : How to check wether a database already exit


Henry
8/26/2003 6:09:31 PM
What is the following missing T-SQL code, Please

if exit ....................

drop database Testing

Go

Vishal Parkar
8/27/2003 8:40:07 AM
if db_id ('northwind') is not null
print 'database exists'
Else
print 'database does not exists'

--
-Vishal
[quoted text, click to view]

AddThis Social Bookmark Button