企业版Sql server 2008 web.config中数据库连接字符串怎么写
2个回答
展开全部
<connectionStrings>
<!--<add name ="AccountID" connectionString ="001"/>
<add name="ServerIP" connectionString="192.168.1.77"/>
<add name="DataBase" connectionString="UFDATA_001_2011"/>
<add name="UserName" connectionString="sa"/>
<add name="Password" connectionString="Lhpc@123"/>-->
<add name="AccountID" connectionString="006"/>
<add name="ServerIP" connectionString="192.168.1.77"/>
<add name="DataBase" connectionString="UFDATA_006_2011"/>
<add name="UserName" connectionString="sa"/>
<add name="Password" connectionString="Lhpc@123"/>
<add name="PROCConnectionString" connectionString="Data Source=192.168.1.77;Initial Catalog=UFDATA_006_2011;User Id=sa;Password=Lhpc@123;" providerName="System.Data.SqlClient"/>
</connectionStrings>
按照上面的样式改吧
<!--<add name ="AccountID" connectionString ="001"/>
<add name="ServerIP" connectionString="192.168.1.77"/>
<add name="DataBase" connectionString="UFDATA_001_2011"/>
<add name="UserName" connectionString="sa"/>
<add name="Password" connectionString="Lhpc@123"/>-->
<add name="AccountID" connectionString="006"/>
<add name="ServerIP" connectionString="192.168.1.77"/>
<add name="DataBase" connectionString="UFDATA_006_2011"/>
<add name="UserName" connectionString="sa"/>
<add name="Password" connectionString="Lhpc@123"/>
<add name="PROCConnectionString" connectionString="Data Source=192.168.1.77;Initial Catalog=UFDATA_006_2011;User Id=sa;Password=Lhpc@123;" providerName="System.Data.SqlClient"/>
</connectionStrings>
按照上面的样式改吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询