This is simple sql query:
USE master
Go
IF EXISTS ( SELECT name
FROM sys.databases
WHERE name = 'MyDataBase' )
PRINT 'Exists'
ELSE
PRINT 'Does Not Exists'
Windows Form Programming User Controls Custom Controls c# code snippets c# vb.net Tutorials
USE master
Go
IF EXISTS ( SELECT name
FROM sys.databases
WHERE name = 'MyDataBase' )
PRINT 'Exists'
ELSE
PRINT 'Does Not Exists'
0 comments:
Post a Comment