Is there something like a directive which I can use in a script to force SSMS to enable/disable SQLCMD mode?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
As has been said there isn't a way, however one thing we do is to include in our script header a quick check to determine whether SQLCMD mode is on (and terminate the script if not):
|
|||||||||
|
|
No. But you can always run in SQLCMD mode and have T-SQL in it though
|
|||
|
|