日期:2014-05-17 浏览次数:20419 次
<connectionStrings> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings>
------解决方案--------------------
<appSettings> <add key="strcon" value="server=.;database=数据库;uid=sa;pwd=sa"/> </appSettings>
------解决方案--------------------
webconfig这样配置 <connectionStrings> <add name="connectionString" connectionString="server=192.168.0.105; database=_2012_Tech;uid=sa;pwd=yy;"/> </connectionStrings>