Guest User

Untitled

a guest
Nov 14th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. :setvar DatabaseName "MyDatabase"
  2. GO
  3.  
  4. IF ('$(DatabaseName)' = '$' + '(DatabaseName)')
  5. RAISERROR ('This script must be run in SQLCMD mode.', 20, 1) WITH LOG
  6. GO
  7.  
  8. -- If we got here, then SQLCMD mode is on.
Add Comment
Please, Sign In to add comment