日期:2014-05-17 浏览次数:20411 次
<connectionStrings>虚拟机商提供数据库那给我一个登录名和密码,我也通过数据库管理工具本地的数据库复制到主机商提供给我的那个数据库服务器上了,线上的连接字符串文件改成这个
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-Kuaibank.com-20130623110737;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-Kuaibank.com-20130623110737.mdf" providerName="System.Data.SqlClient" />
<add name="ProductDBEntities" connectionString="metadata=res://*/Models.ProductDB.csdl|res://*/Models.ProductDB.ssdl|res://*/Models.ProductDB.msl;provider=System.Data.SqlClient;provider connection string="data source=(LocalDb)\v11.0;attachdbfilename=|DataDirectory|\aspnet-Kuaibank.com-20130623110737.mdf;initial catalog=aspnet-Kuaibank.com-20130623110737;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
<add name="DefaultConnection" connectionString="server=(local);uid=sq_kbank;pwd=xxxx;database=sq_kbank;Persist Security Info=False;Initial Catalog=sq_kuaibank;Pooling=true;Max Pool Size=300;Min Pool Size=0;Connection Lifetime=300" providerName="System.Data.SqlClient" />然后数据库还是链接不上,提示
<add name="ProductDBEntities" connectionString="server=(local);uid=sq_kbank;pwd=xxxx;database=sq_kbank;Persist Security Info=False;Initial Catalog=sq_kuaibank;Pooling=true;Max Pool Size=300;Min Pool Size=0;Connection Lifetime=300" providerName="System.Data.EntityClient" />
无法打开登录所请求的数据库 "sq_kuaibank"。登录失败。怎么办呀???今天搞了一天了。。。。要崩溃了。。求助!!
用户 'sq_kbank' 登录失败。