Custom Search

Tuesday, April 28, 2009

Verify whether Database is exist or not if not Create DB in SQL

if not exists(select * from sys.databases where name = 'selftest')
create database selftest ''' Here selftest is DB Name

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.