PowerShell script not accepting $ (dollar) sign

前端 未结 1 1898
滥情空心
滥情空心 2020-12-13 11:50

I am trying to open an SQL data connection using a PowerShell script and my password contains a $ sign:

$cn = new-object system.data.SqlClient.S         


        
相关标签:
1条回答
  • 2020-12-13 12:12

    Escape it by using backtick (`) as an escape character for the dollar sign ($).

    Also, try to enclose the statement in single-quotes instead of the double-quotes you are using now.

    0 讨论(0)
提交回复
热议问题