本帖最后由 needanothercoder 于 2012-04-09 20:28:25 编辑

解决方案 »

  1.   

    建一个文本文件,该拓展名为udl,双击打开,配置,然后保存,再用notepad打开,看到的就是连接字符串
      

  2.   

    谢回复
    得到如下内容:
    [oledb]
    ; Everything after this line is an OLE DB initstring
    Provider=SQLNCLI10.1;Integrated Security="";Persist Security Info=False;User ID=sa;Initial Catalog=Platform;Data Source=SL-PC\SQLEXPRESS2005;Initial File Name="";Server SPN=""
    我本来输入了密码,上面这里也没有密码啊
    另外粘到machine.config里也不好使
      

  3.   

    不知道和配置web。config是不是一样的 你试试 配置asp。net中web。config