wkcode

Asp.Net2.0/VS2005随笔

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
在C:\下的Web.Config中有LocalSqlServer一节,默认连接SQL2005,需先重新配置LocalSqlServer,才可使用SQL2000数据库
<connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Data Source=localhost;Initial Catalog=xxxxx;Persist Security Info=True;User ID=sa;Password=sa" providerName="System.Data.SqlClient" />
    <add name="AppConnectionString" connectionString="Data Source=localhost;Initial Catalog=xxxxx;User ID=sa;Password=sa" />
  </connectionStrings>
posted on 2006-10-24 21:29  wkcode  阅读(396)  评论(1编辑  收藏  举报