Categories
October Surprise 2016

Using ALTER LOGIN from sqlcmd. – social.msdn.microsoft.com

I have a user that has brackets in the user name. I am trying to use ALTER LOGIN to turn off the security policy. The following script works when I run from inside Management Studio, but it fails when I run from sqlcmd. set