How to include ":" as a parameter in powershell?
i has a simple powershell script like this
sqlcmd -S. -E -Q 'select ''$(x)''' -v x="c:a"
but i always got the error
Sqlcmd: ':a': Invalid argument. Enter '-?' for help.
I realized that this argument ":"
in argument was causing the problem, but I don't know how to avoid it.
thanks david
+1
source to share
3 answers