【问题标题】:Tableadapter You must have Microsoft SQL 2005 or greaterTableadapter 您必须有 Microsoft SQL 2005 或更高版本
【发布时间】:2011-03-30 15:36:18
【问题描述】:

我刚收到一个好久没碰的项目。它是用VS2005和SQl 2000编写的。我将项目升级到VS2010没有问题。然而;当我尝试修改表适配器等时,我收到错误“您必须拥有 Microsoft SQL 2005 或更高版本”。

这个项目有 100 多个数据集和表适配器都引用 SQL 2000。

我想我有两个问题: 我应该把所有这些适配器都拿出来做一个数据层并以这种方式连接到数据库吗?

或者我可以将数据库升级到 SQL 2008 并且它会按原样工作吗?不确定什么是最好的方法。

如果重要的话,这是一个桌面应用程序。

任何建议都会很棒。

谢谢

【问题讨论】:

  • 你解决了吗?

标签: sql visual-studio-2010 sql-server-2008 visual-studio-2005 sql-server-2000


【解决方案1】:

我能够通过选择 SQL db 然后选择 OLE 选项将 VS 2010 连接到 MSSQL 2000 db - 然后说记住密码(是的,我知道它没有加密)。这在projectname.exe.config 文件中提供了一个连接字符串,如下所示:

<add name="projectname.My.MySettings.dbnameConnectionString"
     connectionString="Provider=SQLOLEDB;Data Source=ip.ip.ip.ip; Persist Security Info=TRUE;Password=xxxxxxx;User ID=username; Inital Catalog=dbname"
     providerName="System.Data.OleDb" />
<startup>
     <supportedRuntime version="v4.0" sku=".NETFramework, Version=4.0,Profile=Client" />

有了这个,我在这里的最后一行得到了消息 -

Could not find schema information for the attribute 'sku' (and 'version' and element 'supportedRuntime')

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-02-22
    • 2020-04-14
    • 2019-04-13
    • 2020-04-05
    • 2011-11-09
    • 2019-06-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多