SyntaxFix
Write A Post
Hire A Developer
Questions
I use something like this:
if schema_id('newSchema') is null exec('create schema newSchema');
The advantage is if you have this code in a long sql-script you can always execute it with the other code, and its short.