Is Visual Studio 2013 compatible with SQL Server 2

2020-02-15 07:43发布

问题:

I have some SSIS Packages that were developed in (SQL Server Data Tools for) Visual Studio 2013 using SQL Server 2014. The packages are supposed to be moved to a server running SQL Server 2012.

During the install we get an error that says the packages are not compitable with SQL Server 2012. Apparently Visual Studio 2013 is not backwards compatible from SQL Server 2014 to SQL Server 2012? But, Visual Studio 2015 is.

So, do the SSIS packages have to be rewritten in Visual Studio 2015 to work with SQL Server 2012? Or is there another way to make it work without rewriting them...

回答1:

No, prior to Visual Studio 2015, you had to install a specific version of Visual Studio in order to target a specific version of SQL Server.

  • Visual Studio 2008 to SQL Server (2008, 2008 R2)
  • Visual Studio 2012 to SQL Server 2012
  • Visual Studio 2013 to SQL Server 2014
  • Visual Studio 2015 to SQL Server (2012, 2014, 2016)

    https://docs.microsoft.com/en-us/sql/integration-services/install-windows/installing-integration-services-versions-side-by-side?view=sql-server-2017

  • Visual Studio 2017 to SQL Server (2012, 2014, 2016, 2017, 2019)*

So, you need to use Visual Studio versions 2012, 2015, or 2017* to target SQL Server 2012. Visual Studio 2013 is only compatible with SQL Server 2014.

Starting with Visual Studio 2015, Microsoft introduced the concept of SQL Server targeting, which allowed you to develop for various SQL Server versions without having to install a specific version of Visual Studio. So, you can target SQL Server 2012 in Visual Studio 2015. See the following link for SQL Server Targeting in Visual Studio: https://blogs.msdn.microsoft.com/sqlgardner/2016/08/17/ssdt-vs2015-gotcha-target-server-version-new-feature/

*Note: As of SSDT 15.8.1, Visual Studio 2017 added support for SQL Server 2019 while removing support for SQL Server 2012. If you need to target SQL Server 2012 in Visual Studio 2017, you will need to use a version of SSDT prior to 15.8.1. See the change log here: https://docs.microsoft.com/en-us/sql/ssdt/changelog-for-sql-server-data-tools-ssdt?view=sql-server-2017

Beware of using SQL Server 2012 at this point as Microsoft is slowly phasing it out. In fact, I would be hesitant to use 2014 and would seriously consider going to either 2016 or 2017. Note: SQL Server 2019 is the next version that is coming out.



回答2:

Although VS 2015 is supposed to be able to build packages for previous versions of SSIS, I have heard that it is not perfect at doing this.

If I were you, I would re-build the packages in VS 2010.