Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :setvar DatabaseName "MyDatabase"
- GO
- IF ('$(DatabaseName)' = '$' + '(DatabaseName)')
- RAISERROR ('This script must be run in SQLCMD mode.', 20, 1) WITH LOG
- GO
- -- If we got here, then SQLCMD mode is on.
Add Comment
Please, Sign In to add comment