Welcome to MSDN Blogs Sign in | Join | Help

Package upgrade - connection strings

We tried to make our package upgrade as seamless as possible, but one problem we've seen people running into is with their connection strings. As I've previously noted, the provider name for SQL Native Client was changed in 2008 from SQLNCLI to SQLNCLI10. This will could cause your connection managers to fail at runtime, as we wouldn't be able to locate the correct OLEDB provider.

Our package upgrade process will modify your connection strings automatically (this is a configurable option, that is on by default). However, there are a couple of scenarios that we don't handle.

Expressions

If you find your connections look right at design time, but fail at runtime, check whether your connection manager is using expressions to set its connection string. The package upgrade process will not modify values stored in variables or expressions.

Data Source (.ds) files

The package upgrade process doesn't modify connection strings contained within Data Source files. Although we modify the package itself, you'll be prompted to synchronize the connection string the first time you open the package in the designer. This will reset the Provider back to the old value.

image 

A workaround for both of these scenarios is to do a find/replace on all of the files in the solution, changing "SQLNCLI.1" to "SQLNCLI10.1". 

Published Wednesday, May 21, 2008 4:53 PM by mmasson
Filed under: , ,

Comments

# re: Package upgrade - connection strings

Matt - how about connection strings stored in package configurations? Is the upgrade wizard intelligent enough to find (and fix) these too?

Thursday, May 22, 2008 8:46 AM by MatthewMCT

# re: Package upgrade - connection strings

Hi Matthew,

No, the package upgrade wizard only processes the .dtsx file - it doesn't walk the configuration list.

Thursday, May 22, 2008 12:11 PM by mmasson

# Improved error messages about missing OLEDB providers

We've modified the OLEDB_NOPROVIDER error to return the name of the provider we failed to find. This

Thursday, May 22, 2008 1:54 PM by SSIS Stuff
Anonymous comments are disabled
 
Page view tracker