In the article, it mentions that the precedence of using variables in sqlcmd scripts will use the -v parameter before the :setvar statement. If I run the following script:--------------------:SETVAR var1 defaultDECLARE @var1 VARCHAR(256)SET @var1 = '$(var1)'PRINT @var1 ----------------------If you call the above script using the following syntax:the output I get is: defaultHowever, according to the article, it should be "value" ??? Essentially, what I'm looking for is a way to specify defau
↧