欢迎加我的QQ群:193522571,一起来讨论、交流!

直接从代码中复制的字符串放到txt中不可直接作为连接字符串

以下是直接从代码中复制出来的

Data Source=192.168.2.1\\SQLEXPRESS;Initial Catalog=DesignSystem;Persist Security Info=True;User ID=sa;Password=********

而正确的应该是

Data Source=192.168.2.1\SQLEXPRESS;Initial Catalog=DesignSystem;Persist Security Info=True;User ID=sa;Password=********

问题就是“\\”代表的“\”

posted @ 2016-03-16 09:11  swtool  阅读(150)  评论(0编辑  收藏  举报
欢迎加我的QQ群:193522571,一起来讨论、交流!