Quantcast
Viewing all articles
Browse latest Browse all 12198

precendence not working for me ...

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

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>