我刚开始使用的是microsoft express默认的sql express 2005,现在需要换成sql2000,请问怎么设置?
网上说改成这个样子
<connectionStrings>
    <remove name="LocalSqlServer" />
            <add name="LocalSqlServer" connectionString="Data Source=.;Integrated Security=SSPI;Initial Catalog=aspnetdb;Persist Security  Info=True;User ID=sa;Password="
            providerName="System.Data.SqlClient" />
    </connectionStrings>
错误提示如下:
Server Error in '/Hainan Aloecorp' Application.
--------------------------------------------------------------------------------Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Child nodes not allowed.Source Error: 
Line 186:        <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
Line 187:                  type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Line 188:          <providerOption name="CompilerVersion" value="v3.5"/>
Line 189:          <providerOption name="WarnAsError" value="false"/>
Line 190:        </compiler>
 原来连接sql express2005节点设置如下:
<connectionStrings>
            <add name="LocalSqlServer" connectionString="data source=.;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true;uid=sa;pwd=;"
            providerName="System.Data.SqlClient" />
    </connectionStrings>

解决方案 »

  1.   

     你是说SQL2005数据库弄成SQL2000版本吗?如果是。我很遗憾的跟你说你将遇到非常麻烦的转换问题。可以转换2000低版本。但转换过程中会有许多很恼人的约束。
      

  2.   

    是的
    我要把SQL2005数据库转换成SQL2000版本。
    我很头疼
      

  3.   

    检查配置文件, 应该是书写格式有错误.<add name="LocalSqlServer" connectionString="Data Source=.;Initial Catalog=aspnetdb;User ID=sa;Password=;"/>
      

  4.   

    關鍵是數據格式的問題,要把 SQL Express 的數據兼容格式設置為 80的sql 2000的格式。
      

  5.   

    今天试着不行,我把系统给恢复了
    等我把程序都调通了我再来试试,心里一股恶寒还有我这个错误的原因我找到了:我刚开始用sql express 2005的时候装的是3.5,后来换sql2000的时候装的是2.0的。电脑里面保存了几个.net版本,狠狠的鄙视自己一番