I'm creating databases programatically in .Net and I want to verify that the
database doesn't exist before creating it. i found the SQL code:
IF NOT EXISTS(SELECT * FROM <databasename>)
But when I run the code against a known database, even in SQL Management
Studio I get a "Incorrect syntax near ')' error.
What am i doing wrong?
Thanks
RSH