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 on SQL Server, Business Intelligence and .NET

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

Davide Mauri - MCP, MCAD, MCDBA, MCT, MVP on SQL Server - has worked with SQL Server since version 6.5, and his interests cover the whole platform, from the Relational Engine to Analysis Services, from architecture definition to performance tuning. He also has a strong knowledge of XML, .NET and the Object Oriented Design principles, which allows him to have the correct vision and experience to handle development of complex business intelligence solutions. Having worked as a Microsoft Certified Teacher for many years, Davide is able to pass all his knowledge to his co-workers, allowing his team to deliver high-quality solutions. He currently works as a Mentor for SolidQ and can be found speaking in many Italian and internationals events.

This Blog

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement