SlideShare a Scribd company logo
1 of 11
5 Tips for a Smooth SSIS Upgrade to SQL Server 2012

SQL Server Technical Article



Writers: Runying Mao, Carla Sabotta

Technical Reviewers: David Noor, Jeanne Baker



Published: November 2011

Applies to:SQL Server 2012



Summary:Microsoft SQL Server 2012 Integration Services (SSIS) provides significant improvements in
both the developer and administration experience. This article provides tips that can help to make
the upgrade to Microsoft SQL Server 2012 Integration Services successful. The tips address
editing package configurations and specifically connection strings, converting configurations to
parameters, converting packages to the project deployment model, updating Execute Package
tasks to use project references and parameterizing the PackageName property.
Copyright

This document is provided “as-is”. Information and views expressed in this document, including URL and
other Internet Web site references, may change without notice. You bear the risk of using it.

Some examples depicted herein are provided for illustration only and are fictitious. No real association
or connection is intended or should be inferred.

This document does not provide you with any legal rights to any intellectual property in any Microsoft
product. You may copy and use this document for your internal, reference purposes.

© 2011 Microsoft. All rights reserved.




2
Contents




                                                                                                                                                    ... Error!
Bookmark not defined.
Introduction .................................................................................................................................................. 4
TIP #1: Edit Package Configuration and Data Source after upgrading.......................................................... 4
TIP #2: Convert to project deployment model using Project Conversion Wizard ........................................ 6
TIP #3: Update Execute Package Task to use project reference and use parameter to pass data from
parent package to child package .................................................................................................................. 7
TIP #4: Parameterize PackageName property of Execute Package Task to dynamically configure which
child package to run at execution time ........................................................................................................ 9
TIP #5: Convert package configuration to parameter when possible ........................................................ 10
Conclusion ................................................................................................................................................... 10




3
Introduction
Microsoft SQL Server 2012 Integration Services (SSIS) provides significant improvements in both the
developer and administration experience. New SSIS features have been introduced in order to improve
developer productivity, and simplify the deployment, configuration, management and troubleshooting
of SSIS packages.

SQL Server 2012 Integration Services introducesthe project as a self-contained, deployment unit.
Common values can be shared among packages in the same project through project parameters and
project connection managers. ETL developers caneasily reference child packages that are inside the
project.

Solutions that were created in earlier versions of SSIS (pre-SQL Server 2012) will be supported in SQL
Server 2012. When you upgrade the solutions, you can take advantage of the new SQL Server 2012
features. Although in SQL Server 2012 SSIS offers wizards for upgrading most solution components,
there will be a few settings that you’ll need to change manually.

Here are a few tips that can help to make the upgrade successful.


TIP #1: Edit Package Configuration and Data Source after upgrading




The first step to upgrade an SSIS solution is to run the SSIS Package Upgrade Wizard. The SSIS Package
Upgrade Wizard makes appropriate changes to package properties and upgrades the package format.

The wizard launches when you open a pre-SQL Server 2012 package in the SQL Server Data Tools for the
first time. SQL Server Data Tools replaces (BIDs). The wizard can also be launched manually by


4
runningSSISUpgrade.exe, which is located under %ProgramFiles%Microsoft SQL
Server110DTSBinn.

It is critical to note that the SSIS Package Upgrade Wizard does not upgrade settings such as connection
strings that are defined in the package configurations. After a package upgrade, you may need to make
some manual changes to the package configuration to run the upgraded package successfully.

For example, you have an SSIS 2005 package. The package uses an OLE DB connection manager to
connect to the AdventureWorks database in a local SQL Server 2005 instance. The package also uses an
XML package configuration file to dynamically configure the ConnectionString property of the OLE DB
connection manager. The following shows the contents of the XML package configuration file.

    Sample: XML Package Configuration File for an SSIS 2005 package

    <?xml version="1.0"?>

    <DTSConfiguration>

     <Configuration ConfiguredType="Property" Path="Package.Connections[AdventureWorks].ConnectionString"
    ValueType="String">

      <ConfiguredValue>Data Source=(local);Initial Catalog=AdventureWorks;Provider=SQLNCLI.1;Integrated
    Security=SSPI;</ConfiguredValue>

     </Configuration>

    </DTSConfiguration>



You have set up a machine with a standalone SQL Server 2012 installation. You move the SSIS 2005
package to the machine and run the SSIS Package Upgrade Wizard to upgrade the package to SQL Server
2012. When the wizard finishes, you need to manually change the provider name from SQLNCLI.1 to
SQLNCLI11.1 in the XML package configuration file to run the upgraded package successfully. The wizard
does not update package configuration files.

If you don’t update the provider name in the configuration file, the file configures the OLE DB
connection manager to use the SQLNCLI.1 provider that is the SQL Server 2005 Native Client Library.
SQLNCLI11.1 is the SQL Server 2012 Native Client Library. Because the SQL Server 2005 Native Client
Library is not included in SQL Server 2012, the following error message will appear when you open or
execute the upgraded package on the machine where SQL Server 2012is installed:

           The requested OLE DB provider SQLNCLI.1 is not registered. If the 32-bit driver is not installed,
           run the package in 64-bit mode. Error code: 0x00000000. An OLE DB record is available.
           Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not
           registered".

5
So, if your pre-SQL Server 2012 package uses any kind of package configurations, it is important to
remember that you may need to manually update the content of the package configurations after you
upgrade the package to SQL Server 2012. This applies to the different types of configurations, such as
XML configuration files.

Connection strings that require updates and are stored in data source files or set by expressions, need to
be updated manually.


TIP #2: Convert to project deployment model using Project Conversion
Wizard

SQL Server 2012 SSIS supports two deployment models: the package deployment model and the project
deployment model. The package deployment model was available in previous releases of SSIS and is the
default deployment model for upgraded packages. In this model, the unit of deployment is the
package. The project deployment model is new in SQL Server 2012 and provides additional package
deployment and management features such as parameters and the Integration Services catalog. The
unit of deployment is the project.

Please read Project Deployment Overview in SQL Server "Denali" CTP1 -
SSIS(http://social.technet.microsoft.com/wiki/contents/articles/project-deployment-overview-in-sql-
server-quot-denali-quot-ctp1-ssis.aspx ) for a detailed walk through as well as comparison between
these two deployment models.

Read Projects in SQL Server “Denali” CTP1 -
SSIS(http://social.technet.microsoft.com/wiki/contents/articles/projects-in-sql-server-denali-ctp1-
ssis.aspx) for a thorough explanation of the new project concept.

To convert a package to the project deployment, right click the project in Solution Explorer and then
click Convert to Project Deployment Model. The Project Conversion Wizard launches and walks you
through the conversion process.




6
TIP #3: Update Execute Package Task to use project reference and use
parameter to pass data from parent package to child package

If an SSIS package contains an Execute Package Task, the Project Conversion Wizard prompts you to
update the task to use the project reference.

For example, your SSIS project contains several packages. Inside the project, one package (typically
called the parent package) runs another package (typically called the child package) by using an Execute
Package Task. In Pre-SQL Server 2012 releases of SSIS, the parent package references the child package
by using a File connection manager. At deployment, you need to remember to update the File
connection manager to ensure that it points to the new location of the child package.

In SQL Server 2012 Integration Services you can configure the parent package to reference the child
package by name when the child package is included in the same project as the parent package. Using
this project reference makes the deployment experience much smoother. You don’t need to remember
to update the reference between the parent package and the child package at deployment. For a

7
thorough explanation of the project reference in the Execute Package Task, please see Changes to the
Execute Package Task(http://blogs.msdn.com/b/mattm/archive/2011/07/18/changes-to-the-execute-
package-task.aspx).

In previous releases of SSIS, you pass data from the parent package to the child package by creating a
package configuration that uses the parent variable configuration type. This enables a child package that
is run from a parent package to access a variable in the parent.

It is recommended that you configure the Execute Package Task to use parameter binding to pass data
from the parent package to the child package. Parameters make this task easier. For example, you want
a parent package to dynamically determine the number of days in a current month and have the child
package perform a task for that number of times. You can create a variable in the parent package that
represents the number of days and create a parameter in the child package. Then in the Execute
Package Task, you bind the parameter in the child package to the variable in the parent package.




8
Please read Parameters in SQL Server “Denali” CTP1 - SSIS
(http://social.technet.microsoft.com/wiki/contents/articles/parameters-in-sql-server-denali-ctp1-
ssis.aspx) for a description of parameters and the numerous benefits they offer.


TIP #4: Parameterize PackageName property of Execute Package Task to
dynamically configure which child package to run at execution time

Suppose your SSIS 2008 package has an Execute Package Task, and the package uses a File connection
manager to connect to a child package. You dynamically assign which child package the Execute Package
Task runs by configuring the connection string property of the File connection manager.

The following is the content of the XML package configuration file used by your SSIS 2008 package.

    Sample: XML Package Configuration File for an SSIS 2008 package

    <?xml version="1.0"?>

    <DTSConfiguration>

     <Configuration ConfiguredType="Property" Path="Package.Connections[Child.dtsx].Properties[ConnectionString]"
    ValueType="String">

      <ConfiguredValue>E:Integration Services Project1Integration Services
    Project1Child.dtsx</ConfiguredValue>

     </Configuration>

    </DTSConfiguration>




When the Project Conversion Wizard converts the package to the project deployment model and
updates the Execute Package Task to use the project reference, the File connection manager that was
used to connect to the child package is no longer used by the Execute Package Task. To continue to
dynamically determine which child package the task runs, you create a parameter and map that
parameter to the PackageName property of the Execute Package Task as shown in the following image.




9
TIP #5: Convert package configuration to parameter when possible

Parameters are new to SQL Server 2012 Integration Services and are the replacement for package
configurations. You use parameters to assign values to package properties, whether at design time or
run time. The values are pushed to a package when it is executed rather than having the package pull
values from the package configurations.

The Project Conversion Wizard prompts you to optionally convert package configurations to parameters.
It is possible that you might choose to keep a package configuration as an intermediate step of
upgrading to SQL Server 2012. When your package has both configuration values and parameter values,
it is important to understand the order in which these values are applied. Package configuration values
will be applied first. If there are also parameter values for the same properties, these values will be
applied next and will overwrite the package configuration values.


Conclusion
Microsoft SQL Server 2012 Integration Services (SSIS) offers features that greatly enhance the
development and administrative experience. These tips could help users ensure successful upgrades of
their current solutions to SQL Server 2012 so that they can take advantage of SQL Server 2012’s new
features. For more information about SQL Server 2012 Integration Services and what’s new, please refer


10
to What's New (Integration Services) (http://msdn.microsoft.com/en-
us/library/bb522534(v=SQL.110).aspx).



Did this paper help you? Please give us your feedback. Tell us on a scale of 1 (poor) to 5
(excellent), how would you rate this paper and why have you given it this rating? For example:

       Are you rating it high due to having good examples, excellent screen shots, clear writing,
       or another reason?
       Are you rating it low due to poor examples, fuzzy screen shots, or unclear writing?

This feedback will help us improve the quality of white papers we release.

Send feedback.




11

More Related Content

What's hot

Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...
Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...
Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...ChristopherBow2
 
Tn548 installing microsoft sql server 2012 for wonderware products
Tn548 installing microsoft sql server 2012 for wonderware productsTn548 installing microsoft sql server 2012 for wonderware products
Tn548 installing microsoft sql server 2012 for wonderware productsGustavo Alvarez
 
SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)Gert Drapers
 
Ob loading data_oracle
Ob loading data_oracleOb loading data_oracle
Ob loading data_oracleSteve Xu
 
Managing database project with Visual Studio SSDT and TFS
Managing database project with Visual Studio SSDT and TFSManaging database project with Visual Studio SSDT and TFS
Managing database project with Visual Studio SSDT and TFSHarry Zheng
 
Migrating DTS to SSIS
Migrating DTS to SSISMigrating DTS to SSIS
Migrating DTS to SSISthomduclos
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaDr. John Tunnicliffe
 
Sql server licensing_guide_partneredn_v1-1
Sql server licensing_guide_partneredn_v1-1Sql server licensing_guide_partneredn_v1-1
Sql server licensing_guide_partneredn_v1-1guestd54e35
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentationkaashiv1
 
durga_resume
durga_resumedurga_resume
durga_resumedurga p
 
Thinapp47 packageini reference
Thinapp47 packageini referenceThinapp47 packageini reference
Thinapp47 packageini referenceFirman Indrianto
 
Material modulo04 asf6501(6425-a_01)
Material   modulo04 asf6501(6425-a_01)Material   modulo04 asf6501(6425-a_01)
Material modulo04 asf6501(6425-a_01)JSantanderQ
 
Material modulo01 asf6501(6419-a_01)
Material   modulo01 asf6501(6419-a_01)Material   modulo01 asf6501(6419-a_01)
Material modulo01 asf6501(6419-a_01)JSantanderQ
 
Deployingand configuringofficecommunicationsserver2007
Deployingand configuringofficecommunicationsserver2007Deployingand configuringofficecommunicationsserver2007
Deployingand configuringofficecommunicationsserver2007Ziemek Borowski
 

What's hot (17)

Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...
Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...
Designing Database Solutions for Microsoft SQL Server 2012 2012 Microsoft 70-...
 
Dbms assignment no.1
Dbms assignment no.1Dbms assignment no.1
Dbms assignment no.1
 
Tn548 installing microsoft sql server 2012 for wonderware products
Tn548 installing microsoft sql server 2012 for wonderware productsTn548 installing microsoft sql server 2012 for wonderware products
Tn548 installing microsoft sql server 2012 for wonderware products
 
SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)SSDT Workshop @ SQL Bits X (2012-03-29)
SSDT Workshop @ SQL Bits X (2012-03-29)
 
Ob loading data_oracle
Ob loading data_oracleOb loading data_oracle
Ob loading data_oracle
 
Managing database project with Visual Studio SSDT and TFS
Managing database project with Visual Studio SSDT and TFSManaging database project with Visual Studio SSDT and TFS
Managing database project with Visual Studio SSDT and TFS
 
Migrating DTS to SSIS
Migrating DTS to SSISMigrating DTS to SSIS
Migrating DTS to SSIS
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
 
Sql server licensing_guide_partneredn_v1-1
Sql server licensing_guide_partneredn_v1-1Sql server licensing_guide_partneredn_v1-1
Sql server licensing_guide_partneredn_v1-1
 
Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
 
durga_resume
durga_resumedurga_resume
durga_resume
 
Thinapp47 packageini reference
Thinapp47 packageini referenceThinapp47 packageini reference
Thinapp47 packageini reference
 
Material modulo04 asf6501(6425-a_01)
Material   modulo04 asf6501(6425-a_01)Material   modulo04 asf6501(6425-a_01)
Material modulo04 asf6501(6425-a_01)
 
Ebook10
Ebook10Ebook10
Ebook10
 
Material modulo01 asf6501(6419-a_01)
Material   modulo01 asf6501(6419-a_01)Material   modulo01 asf6501(6419-a_01)
Material modulo01 asf6501(6419-a_01)
 
Hari_SQLDBA
Hari_SQLDBAHari_SQLDBA
Hari_SQLDBA
 
Deployingand configuringofficecommunicationsserver2007
Deployingand configuringofficecommunicationsserver2007Deployingand configuringofficecommunicationsserver2007
Deployingand configuringofficecommunicationsserver2007
 

Viewers also liked

23 Ky Nang Quan Tri Thong Tin1393
23 Ky Nang Quan Tri Thong Tin139323 Ky Nang Quan Tri Thong Tin1393
23 Ky Nang Quan Tri Thong Tin1393ngoctrung_lect
 
Apresentação sobre gerenciamento
Apresentação sobre gerenciamentoApresentação sobre gerenciamento
Apresentação sobre gerenciamentoLevi Tancredo
 
Sfd2012Hanoi - Nguyễn Vũ Hưng: Information/Project Management with Redmine
Sfd2012Hanoi  - Nguyễn Vũ Hưng: Information/Project Management with RedmineSfd2012Hanoi  - Nguyễn Vũ Hưng: Information/Project Management with Redmine
Sfd2012Hanoi - Nguyễn Vũ Hưng: Information/Project Management with RedmineVu Hung Nguyen
 
7 thoi quen cua nguoi thanh cong
7 thoi quen cua nguoi thanh cong7 thoi quen cua nguoi thanh cong
7 thoi quen cua nguoi thanh congGia sư Đức Trí
 
Giới thiệu Git và một số tính năng cơ bản
Giới thiệu Git và một số tính năng cơ bảnGiới thiệu Git và một số tính năng cơ bản
Giới thiệu Git và một số tính năng cơ bảnHuy Nguyen Quang
 
Assignment Skill1013
Assignment Skill1013Assignment Skill1013
Assignment Skill1013Trường An
 
Nguyên tắc cơ bản của kiểm thử phần mềm
Nguyên tắc cơ bản của kiểm thử phần mềmNguyên tắc cơ bản của kiểm thử phần mềm
Nguyên tắc cơ bản của kiểm thử phần mềmNgọc Khánh
 
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)Thanh Bùi
 
[Seminar] Hướng dẫn viết test case
[Seminar] Hướng dẫn viết test case[Seminar] Hướng dẫn viết test case
[Seminar] Hướng dẫn viết test caseLe Vu Trung Thanh
 
Giáo trình Tester Full
Giáo trình Tester FullGiáo trình Tester Full
Giáo trình Tester FullThanh Sơn
 
Đồ án kiểm thử phần mềm
Đồ án kiểm thử phần mềmĐồ án kiểm thử phần mềm
Đồ án kiểm thử phần mềmNguyễn Anh
 
Thói quen quản lý thời gian
Thói quen quản lý thời gianThói quen quản lý thời gian
Thói quen quản lý thời gianThanh Bùi
 

Viewers also liked (12)

23 Ky Nang Quan Tri Thong Tin1393
23 Ky Nang Quan Tri Thong Tin139323 Ky Nang Quan Tri Thong Tin1393
23 Ky Nang Quan Tri Thong Tin1393
 
Apresentação sobre gerenciamento
Apresentação sobre gerenciamentoApresentação sobre gerenciamento
Apresentação sobre gerenciamento
 
Sfd2012Hanoi - Nguyễn Vũ Hưng: Information/Project Management with Redmine
Sfd2012Hanoi  - Nguyễn Vũ Hưng: Information/Project Management with RedmineSfd2012Hanoi  - Nguyễn Vũ Hưng: Information/Project Management with Redmine
Sfd2012Hanoi - Nguyễn Vũ Hưng: Information/Project Management with Redmine
 
7 thoi quen cua nguoi thanh cong
7 thoi quen cua nguoi thanh cong7 thoi quen cua nguoi thanh cong
7 thoi quen cua nguoi thanh cong
 
Giới thiệu Git và một số tính năng cơ bản
Giới thiệu Git và một số tính năng cơ bảnGiới thiệu Git và một số tính năng cơ bản
Giới thiệu Git và một số tính năng cơ bản
 
Assignment Skill1013
Assignment Skill1013Assignment Skill1013
Assignment Skill1013
 
Nguyên tắc cơ bản của kiểm thử phần mềm
Nguyên tắc cơ bản của kiểm thử phần mềmNguyên tắc cơ bản của kiểm thử phần mềm
Nguyên tắc cơ bản của kiểm thử phần mềm
 
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)
Sử dụng GIT cho người mới bắt đầu (Tiếng Việt)
 
[Seminar] Hướng dẫn viết test case
[Seminar] Hướng dẫn viết test case[Seminar] Hướng dẫn viết test case
[Seminar] Hướng dẫn viết test case
 
Giáo trình Tester Full
Giáo trình Tester FullGiáo trình Tester Full
Giáo trình Tester Full
 
Đồ án kiểm thử phần mềm
Đồ án kiểm thử phần mềmĐồ án kiểm thử phần mềm
Đồ án kiểm thử phần mềm
 
Thói quen quản lý thời gian
Thói quen quản lý thời gianThói quen quản lý thời gian
Thói quen quản lý thời gian
 

Similar to 5 Tips For Smooth Ssis U Pgrade To Sql 2012

5 tsssisu sql_server_2012
5 tsssisu sql_server_20125 tsssisu sql_server_2012
5 tsssisu sql_server_2012Steve Xu
 
Integration Services Presentation V2
Integration Services Presentation V2Integration Services Presentation V2
Integration Services Presentation V2Catherine Eibner
 
Integration Services Presentation
Integration Services PresentationIntegration Services Presentation
Integration Services PresentationCatherine Eibner
 
Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...
Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...
Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...Cathrine Wilhelmsen
 
B Woodward Portfolio
B Woodward PortfolioB Woodward Portfolio
B Woodward Portfoliobwoodward
 
Microsoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbaiMicrosoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbaiUnmesh Baile
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaDr. John Tunnicliffe
 
MS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningMS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningDataminingTools Inc
 
MS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningMS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningsqlserver content
 
Using MS-SQL Server with Visual DataFlex
Using MS-SQL Server with Visual DataFlexUsing MS-SQL Server with Visual DataFlex
Using MS-SQL Server with Visual DataFlexwebhostingguy
 
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabConfigure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabVinh Nguyen
 
SQL Server Integration Services with Oracle Database 10g
SQL Server Integration Services with Oracle Database 10gSQL Server Integration Services with Oracle Database 10g
SQL Server Integration Services with Oracle Database 10gLeidy Alexandra
 
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
Microsoft SQL Azure - Developing And Deploying With SQL Azure WhitepaperMicrosoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
Microsoft SQL Azure - Developing And Deploying With SQL Azure WhitepaperMicrosoft Private Cloud
 
Dynamics AX Cu7 ax2012r2 Installation guide
Dynamics AX Cu7 ax2012r2 Installation guide Dynamics AX Cu7 ax2012r2 Installation guide
Dynamics AX Cu7 ax2012r2 Installation guide Tariq Rafique
 
Dataweave_library_extension.pdf
Dataweave_library_extension.pdfDataweave_library_extension.pdf
Dataweave_library_extension.pdfShyamRajPrasad
 
Hands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL ServerHands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL ServerSerra Laercio
 
SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1
SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1
SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1Knut Relbe-Moe [MVP, MCT]
 
Integration services extending packages with scripting
Integration services   extending packages with scriptingIntegration services   extending packages with scripting
Integration services extending packages with scriptingSteve Xu
 

Similar to 5 Tips For Smooth Ssis U Pgrade To Sql 2012 (20)

5 tsssisu sql_server_2012
5 tsssisu sql_server_20125 tsssisu sql_server_2012
5 tsssisu sql_server_2012
 
Integration Services Presentation V2
Integration Services Presentation V2Integration Services Presentation V2
Integration Services Presentation V2
 
Integration Services Presentation
Integration Services PresentationIntegration Services Presentation
Integration Services Presentation
 
Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...
Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...
Upgrading from SSIS Package Deployment to Project Deployment (SQLSaturday Den...
 
B Woodward Portfolio
B Woodward PortfolioB Woodward Portfolio
B Woodward Portfolio
 
Microsoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbaiMicrosoft-business-intelligence-training-in-mumbai
Microsoft-business-intelligence-training-in-mumbai
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
 
SSDT unleashed
SSDT unleashedSSDT unleashed
SSDT unleashed
 
Dbi h315
Dbi h315Dbi h315
Dbi h315
 
MS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningMS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data mining
 
MS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningMS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data mining
 
Using MS-SQL Server with Visual DataFlex
Using MS-SQL Server with Visual DataFlexUsing MS-SQL Server with Visual DataFlex
Using MS-SQL Server with Visual DataFlex
 
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabConfigure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
 
SQL Server Integration Services with Oracle Database 10g
SQL Server Integration Services with Oracle Database 10gSQL Server Integration Services with Oracle Database 10g
SQL Server Integration Services with Oracle Database 10g
 
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
Microsoft SQL Azure - Developing And Deploying With SQL Azure WhitepaperMicrosoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
 
Dynamics AX Cu7 ax2012r2 Installation guide
Dynamics AX Cu7 ax2012r2 Installation guide Dynamics AX Cu7 ax2012r2 Installation guide
Dynamics AX Cu7 ax2012r2 Installation guide
 
Dataweave_library_extension.pdf
Dataweave_library_extension.pdfDataweave_library_extension.pdf
Dataweave_library_extension.pdf
 
Hands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL ServerHands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL Server
 
SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1
SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1
SPS Dubai Best Practice upgrading SharePoint from 2007/2010 to 2013 and 2013 SP1
 
Integration services extending packages with scripting
Integration services   extending packages with scriptingIntegration services   extending packages with scripting
Integration services extending packages with scripting
 

5 Tips For Smooth Ssis U Pgrade To Sql 2012

  • 1. 5 Tips for a Smooth SSIS Upgrade to SQL Server 2012 SQL Server Technical Article Writers: Runying Mao, Carla Sabotta Technical Reviewers: David Noor, Jeanne Baker Published: November 2011 Applies to:SQL Server 2012 Summary:Microsoft SQL Server 2012 Integration Services (SSIS) provides significant improvements in both the developer and administration experience. This article provides tips that can help to make the upgrade to Microsoft SQL Server 2012 Integration Services successful. The tips address editing package configurations and specifically connection strings, converting configurations to parameters, converting packages to the project deployment model, updating Execute Package tasks to use project references and parameterizing the PackageName property.
  • 2. Copyright This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2011 Microsoft. All rights reserved. 2
  • 3. Contents ... Error! Bookmark not defined. Introduction .................................................................................................................................................. 4 TIP #1: Edit Package Configuration and Data Source after upgrading.......................................................... 4 TIP #2: Convert to project deployment model using Project Conversion Wizard ........................................ 6 TIP #3: Update Execute Package Task to use project reference and use parameter to pass data from parent package to child package .................................................................................................................. 7 TIP #4: Parameterize PackageName property of Execute Package Task to dynamically configure which child package to run at execution time ........................................................................................................ 9 TIP #5: Convert package configuration to parameter when possible ........................................................ 10 Conclusion ................................................................................................................................................... 10 3
  • 4. Introduction Microsoft SQL Server 2012 Integration Services (SSIS) provides significant improvements in both the developer and administration experience. New SSIS features have been introduced in order to improve developer productivity, and simplify the deployment, configuration, management and troubleshooting of SSIS packages. SQL Server 2012 Integration Services introducesthe project as a self-contained, deployment unit. Common values can be shared among packages in the same project through project parameters and project connection managers. ETL developers caneasily reference child packages that are inside the project. Solutions that were created in earlier versions of SSIS (pre-SQL Server 2012) will be supported in SQL Server 2012. When you upgrade the solutions, you can take advantage of the new SQL Server 2012 features. Although in SQL Server 2012 SSIS offers wizards for upgrading most solution components, there will be a few settings that you’ll need to change manually. Here are a few tips that can help to make the upgrade successful. TIP #1: Edit Package Configuration and Data Source after upgrading The first step to upgrade an SSIS solution is to run the SSIS Package Upgrade Wizard. The SSIS Package Upgrade Wizard makes appropriate changes to package properties and upgrades the package format. The wizard launches when you open a pre-SQL Server 2012 package in the SQL Server Data Tools for the first time. SQL Server Data Tools replaces (BIDs). The wizard can also be launched manually by 4
  • 5. runningSSISUpgrade.exe, which is located under %ProgramFiles%Microsoft SQL Server110DTSBinn. It is critical to note that the SSIS Package Upgrade Wizard does not upgrade settings such as connection strings that are defined in the package configurations. After a package upgrade, you may need to make some manual changes to the package configuration to run the upgraded package successfully. For example, you have an SSIS 2005 package. The package uses an OLE DB connection manager to connect to the AdventureWorks database in a local SQL Server 2005 instance. The package also uses an XML package configuration file to dynamically configure the ConnectionString property of the OLE DB connection manager. The following shows the contents of the XML package configuration file. Sample: XML Package Configuration File for an SSIS 2005 package <?xml version="1.0"?> <DTSConfiguration> <Configuration ConfiguredType="Property" Path="Package.Connections[AdventureWorks].ConnectionString" ValueType="String"> <ConfiguredValue>Data Source=(local);Initial Catalog=AdventureWorks;Provider=SQLNCLI.1;Integrated Security=SSPI;</ConfiguredValue> </Configuration> </DTSConfiguration> You have set up a machine with a standalone SQL Server 2012 installation. You move the SSIS 2005 package to the machine and run the SSIS Package Upgrade Wizard to upgrade the package to SQL Server 2012. When the wizard finishes, you need to manually change the provider name from SQLNCLI.1 to SQLNCLI11.1 in the XML package configuration file to run the upgraded package successfully. The wizard does not update package configuration files. If you don’t update the provider name in the configuration file, the file configures the OLE DB connection manager to use the SQLNCLI.1 provider that is the SQL Server 2005 Native Client Library. SQLNCLI11.1 is the SQL Server 2012 Native Client Library. Because the SQL Server 2005 Native Client Library is not included in SQL Server 2012, the following error message will appear when you open or execute the upgraded package on the machine where SQL Server 2012is installed: The requested OLE DB provider SQLNCLI.1 is not registered. If the 32-bit driver is not installed, run the package in 64-bit mode. Error code: 0x00000000. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered". 5
  • 6. So, if your pre-SQL Server 2012 package uses any kind of package configurations, it is important to remember that you may need to manually update the content of the package configurations after you upgrade the package to SQL Server 2012. This applies to the different types of configurations, such as XML configuration files. Connection strings that require updates and are stored in data source files or set by expressions, need to be updated manually. TIP #2: Convert to project deployment model using Project Conversion Wizard SQL Server 2012 SSIS supports two deployment models: the package deployment model and the project deployment model. The package deployment model was available in previous releases of SSIS and is the default deployment model for upgraded packages. In this model, the unit of deployment is the package. The project deployment model is new in SQL Server 2012 and provides additional package deployment and management features such as parameters and the Integration Services catalog. The unit of deployment is the project. Please read Project Deployment Overview in SQL Server "Denali" CTP1 - SSIS(http://social.technet.microsoft.com/wiki/contents/articles/project-deployment-overview-in-sql- server-quot-denali-quot-ctp1-ssis.aspx ) for a detailed walk through as well as comparison between these two deployment models. Read Projects in SQL Server “Denali” CTP1 - SSIS(http://social.technet.microsoft.com/wiki/contents/articles/projects-in-sql-server-denali-ctp1- ssis.aspx) for a thorough explanation of the new project concept. To convert a package to the project deployment, right click the project in Solution Explorer and then click Convert to Project Deployment Model. The Project Conversion Wizard launches and walks you through the conversion process. 6
  • 7. TIP #3: Update Execute Package Task to use project reference and use parameter to pass data from parent package to child package If an SSIS package contains an Execute Package Task, the Project Conversion Wizard prompts you to update the task to use the project reference. For example, your SSIS project contains several packages. Inside the project, one package (typically called the parent package) runs another package (typically called the child package) by using an Execute Package Task. In Pre-SQL Server 2012 releases of SSIS, the parent package references the child package by using a File connection manager. At deployment, you need to remember to update the File connection manager to ensure that it points to the new location of the child package. In SQL Server 2012 Integration Services you can configure the parent package to reference the child package by name when the child package is included in the same project as the parent package. Using this project reference makes the deployment experience much smoother. You don’t need to remember to update the reference between the parent package and the child package at deployment. For a 7
  • 8. thorough explanation of the project reference in the Execute Package Task, please see Changes to the Execute Package Task(http://blogs.msdn.com/b/mattm/archive/2011/07/18/changes-to-the-execute- package-task.aspx). In previous releases of SSIS, you pass data from the parent package to the child package by creating a package configuration that uses the parent variable configuration type. This enables a child package that is run from a parent package to access a variable in the parent. It is recommended that you configure the Execute Package Task to use parameter binding to pass data from the parent package to the child package. Parameters make this task easier. For example, you want a parent package to dynamically determine the number of days in a current month and have the child package perform a task for that number of times. You can create a variable in the parent package that represents the number of days and create a parameter in the child package. Then in the Execute Package Task, you bind the parameter in the child package to the variable in the parent package. 8
  • 9. Please read Parameters in SQL Server “Denali” CTP1 - SSIS (http://social.technet.microsoft.com/wiki/contents/articles/parameters-in-sql-server-denali-ctp1- ssis.aspx) for a description of parameters and the numerous benefits they offer. TIP #4: Parameterize PackageName property of Execute Package Task to dynamically configure which child package to run at execution time Suppose your SSIS 2008 package has an Execute Package Task, and the package uses a File connection manager to connect to a child package. You dynamically assign which child package the Execute Package Task runs by configuring the connection string property of the File connection manager. The following is the content of the XML package configuration file used by your SSIS 2008 package. Sample: XML Package Configuration File for an SSIS 2008 package <?xml version="1.0"?> <DTSConfiguration> <Configuration ConfiguredType="Property" Path="Package.Connections[Child.dtsx].Properties[ConnectionString]" ValueType="String"> <ConfiguredValue>E:Integration Services Project1Integration Services Project1Child.dtsx</ConfiguredValue> </Configuration> </DTSConfiguration> When the Project Conversion Wizard converts the package to the project deployment model and updates the Execute Package Task to use the project reference, the File connection manager that was used to connect to the child package is no longer used by the Execute Package Task. To continue to dynamically determine which child package the task runs, you create a parameter and map that parameter to the PackageName property of the Execute Package Task as shown in the following image. 9
  • 10. TIP #5: Convert package configuration to parameter when possible Parameters are new to SQL Server 2012 Integration Services and are the replacement for package configurations. You use parameters to assign values to package properties, whether at design time or run time. The values are pushed to a package when it is executed rather than having the package pull values from the package configurations. The Project Conversion Wizard prompts you to optionally convert package configurations to parameters. It is possible that you might choose to keep a package configuration as an intermediate step of upgrading to SQL Server 2012. When your package has both configuration values and parameter values, it is important to understand the order in which these values are applied. Package configuration values will be applied first. If there are also parameter values for the same properties, these values will be applied next and will overwrite the package configuration values. Conclusion Microsoft SQL Server 2012 Integration Services (SSIS) offers features that greatly enhance the development and administrative experience. These tips could help users ensure successful upgrades of their current solutions to SQL Server 2012 so that they can take advantage of SQL Server 2012’s new features. For more information about SQL Server 2012 Integration Services and what’s new, please refer 10
  • 11. to What's New (Integration Services) (http://msdn.microsoft.com/en- us/library/bb522534(v=SQL.110).aspx). Did this paper help you? Please give us your feedback. Tell us on a scale of 1 (poor) to 5 (excellent), how would you rate this paper and why have you given it this rating? For example: Are you rating it high due to having good examples, excellent screen shots, clear writing, or another reason? Are you rating it low due to poor examples, fuzzy screen shots, or unclear writing? This feedback will help us improve the quality of white papers we release. Send feedback. 11