我正在尝试使用 ADO 连接到 SQL Server 数据库。密码包含一个空格作为最后一个字符。构建连接字符串时,我应该如何转义密码?
MSDN说把它放在单引号或双引号中,但这似乎不起作用......
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring.aspx
这是我的连接字符串的样子:
Provider=SQLOLEDB;Persist Security Info=False;Initial Catalog=master;Data Source=test;uid=john;pwd="123 "
谢谢