hi
i have a simple powershell script, like this
sqlcmd -S. -E -Q 'select ''$(x)''' -v x="c:a"
but i always got the error message
Sqlcmd: ':a': Invalid argument. Enter '-?' for help.
i figured out that it is the ":"
in the argument caused the problem, but i do not know how to escape it.
thanks, David