简体   繁体   English

Visual Studio 2005不支持Sql Server 2008

[英]Visual Studio 2005 doesn't support Sql Server 2008

I'm developing Reporting services on VS2005 and have to connect to SQL Server 2008. The following Error occurs: "This server version is not supported. You must have Microsoft SQL Server 2005 Beta 2 or later." 我正在VS2005上开发Reporting Services并且必须连接到SQL Server 2008.出现以下错误:“不支持此服务器版本。您必须具有Microsoft SQL Server 2005 Beta 2或更高版本。”

I found on the net a patch for it, but it doesn't work ( link to patch ) 我在网上找到了它的补丁,但它不起作用( 链接到补丁

"The upgrade patch cannot be installed by the Windows Installer Service because the program to be upgraded is missing, or the upgrade patch may update a different version of the program." “Windows Installer服务无法安装升级修补程序,因为缺少要升级的程序,或者升级修补程序可能会更新该程序的其他版本。”

what else can I do ? 我还可以做些什么 ? :( :(

Just got this error message and was able to get rid of it by clicking Generic Query Designer button: 刚收到此错误消息,并通过单击Generic Query Designer按钮摆脱它: 在此输入图像描述

Reporting Services are very different between 2005 and 2008. You'll need to use the 2008 tools to develop reports for 2008. You can just use the Business Intelligence Studio which comes with SQL Server 2008 - this uses Visual Studio 2008 anyway. 报告服务在2005年和2008年之间非常不同。您需要使用2008工具来开发2008年的报告。您可以使用SQL Server 2008附带的Business Intelligence Studio - 无论如何都使用Visual Studio 2008。 I'm fairly sure the patch you've got won't add support for SQL Server Reporting Services 2008. 我很确定您获得的补丁不会添加对SQL Server Reporting Services 2008的支持。

If you need to use the Reports from Visual Studio 2005, you'll need to use SQL Server Reporting Services 2005 (it is actually possible to install this alongside SQL Server 2008). 如果需要使用Visual Studio 2005中的报告,则需要使用SQL Server Reporting Services 2005(实际上可以将其与SQL Server 2008一起安装)。 I've had a separate problem which means my reports won't work on SSRS 2008, but I've switched to SQL Server 2008. I'm successfully running SSRS2005 connecting to a SQL2008 Database. 我有一个单独的问题,这意味着我的报告将不适用于SSRS 2008,但我已切换到SQL Server 2008.我已成功运行SSRS2005连接到SQL2008数据库。

I wanted to add to this a handy workaround I found if you're in a particular situation. 我想在这个方面添加一个方便的解决方法,如果你遇到特殊情况我会发现。 You can actually use Visual Studio 2005 and create SSRS 2005 reports and still pull from SQL 2008 data. 您实际上可以使用Visual Studio 2005并创建SSRS 2005报告,并仍然从SQL 2008数据中提取。 This can be done as long as you have one server in your environment running SQL 2005 still. 只要您的环境中有一台运行SQL 2005的服务器,就可以完成此操作。

You just need to create a linked server for your 2008 servers. 您只需要为2008服务器创建链接服务器。 Then, in SSRS, you create one data source to your 2005 server, but reference the 2008 linked server in your query, and it'll work. 然后,在SSRS中,您为2005服务器创建一个数据源,但在查询中引用2008链接服务器,它将起作用。 For example, if you have a SQL 2008 server called Chicago and a SQL 2005 server called Detroit, you'd create a linked server on Detroit for Chicago, and you'd create a data source in Visual Studio 2005 for your report that would point to Detroit. 例如,如果您有一个名为Chicago的SQL 2008服务器和一个名为Detroit的SQL 2005服务器,您将在Detroit for Chicago上创建一个链接服务器,并且您将在Visual Studio 2005中为您的报告创建一个数据源去底特律。 Then, in your query, you'd just have something like SELECT * FROM Chicago.Database.dbo.Table and it should work. 然后,在您的查询中,您只需要SELECT * FROM Chicago.Database.dbo.Table,它应该可以工作。

Obviously you'll probably want to switch to a 2008 environment altogether, but this is a nice thing to know for the conversion phase. 显然你可能想要完全切换到2008环境,但这对于转换阶段来说是个好消息。

Hope that helps. 希望有所帮助。

Just in case anyone else runs into this, my issue was that the custom software that runs the ssrs reports only supported ssrs 2005 reports and it also used a sql 2008 database so I couldn't upgrade to BIDS 2008. 为了防止其他人遇到此问题,我的问题是运行ssrs报告的自定义软件仅支持ssrs 2005报告,并且它还使用了sql 2008数据库,因此我无法升级到BIDS 2008。

I was able to run the patch in the ops link once I installed visual studio 2005 professional then bids 2005 on top of that. 一旦我安装了visual studio 2005专业版,然后在2005年就出价,我就可以在ops链接中运行补丁。

Seems the sql 2008 patch doesn't pick up bids 2005 stand alone. 似乎sql 2008补丁没有拿起2005年独立的出价。

您可能想重新安装

最后我安装了SQL Server 2005

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM