如何修复 Visual Studio 的错误“不支持此服务器版本...";用于 SQL Server 2012
我最近在 Windows Server 2008 R2 机器上安装了 Visual Studio 2010 和 SQL Server 2012 -(包括所有更新/服务包).
I recently installed Visual Studio 2010 and SQL Server 2012 on a Windows Server 2008 R2 machine - (including all updates/Service Packs).
尝试从 Visual Studio 中处理 SQL Server 数据库时,VS 会引发以下错误:
When attempting to work on a SQL Server database from within Visual Studio, VS throws the following error:
不支持此服务器版本.仅支持 Microsoft SQL 的服务器支持 Server 2008
This server version is not supported. Only servers up to Microsoft SQL Server 2008 are supported
我记得不久前(在另一台计算机上)当我将 SQL Server 2008 实例更新到 SQL Server 2008 R2 时遇到了同样的错误.当时的修复方法是安装(或重新安装)Visual Studio 2010 SP1.
I recall getting this same error a while back (on a different computer) when I updated a SQL Server 2008 instance to SQL Server 2008 R2. The fix, back then, was to install (or reinstall) Visual Studio 2010 SP1.
现在我再次收到此错误(在新计算机上),我认为重新安装 VS SP1 是合理的,就像我之前所做的那样.然而,这样做并没有解决问题.
Now that I'm receiving this error again (on a new computer), I thought it reasonable to reinstall VS SP1 just like I did a while back. However, doing so did not fix the problem.
似乎 Visual Studio 可能需要另一个更新来支持 SQL Server 2012 实例.
It appears as though Visual Studio may need another update to support SQL Server 2012 instances.
为了清楚起见,以下是我为产生错误所做的步骤:(使用 VS 2010sp1 和 SQL2012)
For clarity, here are the steps that I did to produce the error: (using VS 2010sp1 and SQL2012)
- 使用 VS,创建 Windows 窗体应用程序
- 右键单击项目并选择添加">新建项目"
- 选择基于服务的数据库"
- 取消数据源配置向导"
- 一个数据库将出现在解决方案资源管理器中您的项目下.双击新建的数据库
- 数据库将添加到服务器资源管理器的数据连接列表中
- 在服务器资源管理器中,打开数据库,右键单击表目录,然后选择添加新表"
- 抛出错误不支持此服务器版本...."
无论其价值的屏幕截图..
Screenshots for whatever its worth..
我的问题是,有没有办法解决这个问题?如果是,那是什么?
My question is, is there a fix for this? If so, what is it?
推荐答案
也许可以获得 SQL Server Data Tools,哪些与 SQL Server 2012 一起使用?我相信开发人员培训工具包中有一些很好的教程和其他材料.我认为没有任何技巧可以使旧版本的 Visual Studio/Data Dude 与 SQL Server 2012 兼容.
Maybe get SQL Server Data Tools, which work with SQL Server 2012? I believe there are some good tutorials and other materials in the Developer Training Kit. I don't think there are any tricks yet to make an older version of Visual Studio / Data Dude compatible with SQL Server 2012.
相关文章