THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Davide Mauri

A place for my thoughts and experiences the Microsoft Data Platform

IBM DB2 and the “'DbProviderFactories' section can only appear once per config” error

IBM doesn’t like MS. That’s a fact. And that’s why you can get your machine.config file (!!!) corrupted if you try to install IBM DB2 data providers on your server machine.

If at some point, after having installed IBM DB2 data providers your SSIS packages or SSAS cubes or SSRS Reports starts to complain that

'DbProviderFactories' section can only appear once per config

you may want to check into you machine.config, located in the %runtime install path%\Config

http://msdn.microsoft.com/en-us/library/ms229697%28v=vs.71%29.aspx

Almost surely you’ll find a IBM DB2 Provider into an additional DbProviderFactories section all alone. Poor guy. Remove the double DBProviderFactories entry, and merge everything inside only one section DBProviderFactories and after that everything will start to work again.

Published Thursday, November 24, 2011 7:31 PM by Davide Mauri

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Uri Dimant said:

Hi Davide

We are using lots of SSIS packages transfer data from AS400 into SQL Server by using DB2OLEDB.exe, 64 bits, I have never seen 'DbProviderFactories' section can only appear once per config this warning message

November 27, 2011 1:35 AM
 

Uri Dimant said:

Hi Davide

We are using lots of SSIS packages transfer data from AS400 into SQL Server by using DB2OLEDB.exe, 64 bits, I have never seen 'DbProviderFactories' section can only appear once per config this warning message

November 27, 2011 1:35 AM
 

Davide Mauri said:

Hi Uri

Lucky you :) I've never had problem so far, but it just happened last week. After the customer installed DB2 drivers on SQL Server machine, all cubes, reports and SSIS started to complain with the reported error...

Luckly the error is quite self-explanatory for those who know .NET and thus are aware of the michine.config existance, otherwise I fear that one may loose hours to understand what the problem is.

November 27, 2011 2:08 PM
 

V said:

Thanks for the tips.

May 22, 2013 3:10 PM
 

Richard Back said:

We just had this at a client. It not only messes up SSIS but also SSMS. Good spot!

June 25, 2013 2:39 AM
 

Jon said:

Thanks for posting this, it was very helpful!

July 21, 2013 10:16 AM
 

Pablo said:

I discover someting else after install db2 providers,installer left the tag <DbProviderFactories> instead of <DbProviderFactories />

Result? any application using .NET4 falls out ! including Intel RST manager.

October 18, 2013 7:52 AM
 

David said:

Worked for me! Many thanks

February 11, 2014 7:33 AM
 

Joe said:

Thanks!

March 5, 2014 4:52 PM
 

Francis said:

Grazie Davide!

Mi hai risparmiato un bel pò di grattacapi.

Thanks! Works perfectly!Very helpful!

September 2, 2014 6:03 AM

Leave a Comment

(required) 
(required) 
Submit

About Davide Mauri

Director of Software Development & Cloud Infrastructure @ Sensoria, an innovative smart garments and wearable company. After more than 15 year playing with the Microsoft Data Platform, with a specific focus on High Performance databases, Business Intelligence, Data Science and Data Architectures, he's now applying all his skills to IoT, defining architectures to crunch numbers, create nice user experiences and provide meaningful insights, all leveraging Microsoft Azure cloud. MVP on Data Platform since 2006 he has a very strong background development and love both the ER model and OO principles. He is also a fan of Agile Methodology and Automation, which he tries to apply everywhere he can, to make sure that "people think, machines do".

This Blog

Syndication

Privacy Statement