More Fun with 64-bit Windows and ODBC

This week, I helped a customer install SAP BusinessObjects XI 3.1 SP3 on Microsoft Windows Server 2008 64-bit using Microsoft SQL Server 2005 for the system (CMS) and audit databases.  And once again, I was tricked by Microsoft’s ODBC Data Sources panel into creating 64-bit ODBC connections that were rejected by the XI 3.1 installation program.  XI 3.1 is fully supported on 64-bit operating systems, but it’s still a 32-bit application that requires 32-bit database connectivity.  The whole experience felt like deja vu, and sure enough, I blogged about this topic over two years ago when it burned me the first time.  So let’s review (from Microsoft Support article 942976):

The 64-bit version of the Odbcad32.exe file is located in the C:\Windows\System32 folder.  This 64-bit version appears on the Windows Start menu.

The 32-bit version of the Odbcad32.exe file is located in the C:\Windows\SysWoW64 folder.  This version does not appear on the Windows Start menu.

Got that?  64-bit code is stored in a folder named “System32″ and 32-bit code is stored in a folder named “SysWoW64″.  And both ODBC panels are identical in appearance – there’s no real clue to which one you’re using.  All I can say is “SysWoW64! That’s really intuitive, Mr. Ballmer!”

I recommend two best practices.  First, create a desktop shortcut to the 32-bit ODBC panel (C:\Windows\SysWoW64 folder) before even attempting your SAP BusinessObjects installation,  then create your DSNs via the shortcut.  Second, append _32 to your DSN names to remind everyone that they are 32-bit connections.  For example, BOE_SYSTEM_32 and BOE_AUDIT_32.  During the XI 3.1 installation, the dialog box for establishing the BusinessObjects system and audit databases for Microsoft SQL Server will have the “Consume DSN created under WOW64″ box checked by default.  You should see your 32-bit DSNs on the list of available DSN’s.  If your DSNs refuse to apper until you uncheck the “Consume DSN created under WOW64″ box, that’s your clue that you goofed up and created 64-bit DSNs.  Attempting to proceed further will cause the installation program to generate a humiliating STW00225 (Audit connection) and/or STW00226 (system/CMS connection) error message.

SAP tries to warn us with the following note in the supported platforms document:

BusinessObjects products use the 32-bit ODBC registry on all versions of Windows. To administer 32-bit ODBC DSNs on 64-bit versions of Windows, run the 32-bit ODBC Administrator, located here: C:\Windows\SysWOW64\odbcad32.exe

Thankfully, the upcoming release of SAP BusinessObjects Business Intelligence 4.0 is fully 64-bit, allowing the use of 64-bit DSN’s to Microsoft SQL Server.  So it won’t be long before we can all put this ODBC controversy behind us. Well, all of us except for Mr. Ballmer.

UPDATE: Although the SAP BusinessObjects Business Intelligence 4.0 platform is 64-bit, it is not fully 64-bit.  In particular, Crystal Reports 2011 still requires 32-bit database connectivity (see related article, Still Having Fun with 64-bit Windows and ODBC).

Thank you, Mr. Ballmer.

Tags: , ,

About Dallas Marks

As a business intelligence architect, developer, mentor and trainer, I help organizations across the United States harness the power of business intelligence, primarily (but not exclusively) using SAP BusinessObjects products. I prefer piano keyboards instead of computer keyboards when not blogging or tweeting about business intelligence.