Enable loading variable contents from a file #385
simonsabin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is often needed to pass teh contents of a file to a script in SQLCMD. Multi line variables are not possible and also prone to problems.
If would be good to have something like -vf CERTDATA=c:\mycert.cert which would then pass the contents of the file as a variable.
Whilst in your shell of choice you could read contents and pass it, the challenge is that you have to escape the contents to ensure it is parsed correctly.
Beta Was this translation helpful? Give feedback.
All reactions