Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

2008 R2 Lookup Fails with SQLNCLI11 Connection

$
0
0

SSIS 2008 R2 Lookup transformations don't seem to work well with the 11.0 SQL Server Native Client provider (SQLNCLI11) when using the Partial Cache or No Cache options. This combination results in the follow error when the package is validated:

Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E5D.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E5D  Description: "Parameter name is unrecognized.".

Reproducing this problem is simple:

  • Create a new SSIS project in BIDS 2008 R2
  • Add a Connection Manager to a SQL Server data source using the SQL Server Native Client 11.0 provider. (It will try to default to the 10.0 provider and you can't change it after it's been created so make sure it's right here.) I used the AdventureWorksDW2008R2 database for this sample.
  • Add a Data Flow Task
  • Add an OLE DB Data Source using the following query
    SELECT TOP 1000 *
      FROM dbo.FactInternetSales
  • Add a Lookup transformation and connect it to the OLE DB source created in step 4
  • Set the Lookup to Partial Cache
  • Set the Connection to Use the results of an SQL query and use the following query
    SELECT CustomerKey, CustomerAlternateKey
      FROM dbo.DimCustomer
  • Set the lookup key on the CustomerKey columns and check the CustomerAlternateKey on the Available Lookup columns
  • Save the package and execute it.
  • The validation should fail on the Lookup transformation as described above.

I am about to write a script to go through our 1,200+ packages and find the ones that are using lookups with partial or no cache but was hoping for a simpler solution.

Right now we have a mix of 2008 R2 and 2012 packages that share the same set of config files. We aren't ready to go to the Project Deployment Model and will be in the mish-mash state for a while yet.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>