我正在尝试使用PowerShell脚本打开SQL数据连接,我的密码包含一个$符号:
$
$cn = new-object system.data.SqlClient.SqlConnection("Data Source=DBNAME;Initial Catalog=Catagory;User ID=User;Password=pass$word;")
当我尝试打开连接时,它说:
登录失败
powershell escaping
escaping ×1
powershell ×1