Comments (2)

  1. SetVar is great and I understand how it works.

    I wish I could come up with a way to
    1. Have SetVar in the script to set a default value
    2. Optionally override the in script SetVar value from the command line using -v

    1. Yes. If being able to execute some conditional T-SQL logic to re-set the variable value at run-time. Unfortunately, it just doesn’t work that way.

Leave a Reply