<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Developer&#039;s Blog &#187; 64-bit</title>
	<atom:link href="http://blog.hoegaerden.be/tag/64-bit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hoegaerden.be</link>
	<description>SQL Server, BI, .NET, IT and anything else I have been playing with.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:15:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Is it 32 or 64?</title>
		<link>http://blog.hoegaerden.be/2009/05/01/is-it-32-or-64/</link>
		<comments>http://blog.hoegaerden.be/2009/05/01/is-it-32-or-64/#comments</comments>
		<pubDate>Fri, 01 May 2009 17:16:25 +0000</pubDate>
		<dc:creator>Valentino Vranken</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://blog.hoegaerden.be/2009/05/01/is-it-32-or-64/</guid>
		<description><![CDATA[That’s a question that you should always keep in mind when working on a 64-bit machine.&#160; In case you’re wondering why I’ll tell you a little story. On a server not so long ago the operating system was Windows Server 2008 64-bit.&#160; The database system was SQL Server 2008, 64-bit as well. That server needed [...]]]></description>
			<content:encoded><![CDATA[<p>That’s a question that you should always keep in mind when working on a 64-bit machine.&#160; In case you’re wondering why I’ll tell you a little story.</p>
<p>On a server not so long ago the operating system was Windows Server 2008 64-bit.&#160; The database system was SQL Server 2008, 64-bit as well.</p>
<p>That server needed to be able to connect to a DB2 database on another server.&#160; For that purpose someone installed the IBM ODBC 9.5 driver, 32-bit.&#160; As usual when someone asks for connectivity to that DB2 server, the batch script containing some typical DB2 commands was executed.&#160; What this script does is create a couple of ODBC System DSNs.&#160; The person that installed the driver showed that all was working fine because using some command-line tool he was able to connect to the databases.</p>
<p>However, when I opened the ODBC Data Source Administrator through Administrative Tools &gt; Data Sources (ODBC), it didn’t show me any System DSNs and when I clicked the Add… button it didn’t show me any DB2 drivers either.&#160; So it seemed that something went wrong.&#160; Or not?</p>
<p>What I needed to be able to do was to connect from Reporting Services to the DB2 database.&#160; So as next test I decided to create a small report directly on the server (BIDS was installed).&#160; And all went fine, I was able to create a data source connecting to DB2 and dataset querying data from the DB2 database.</p>
<p>Then I decided to deploy the report and run it through the Report Manager.&#160; Deployment went fine but when I ran the report it could not connect to DB2.&#160; Hmm, is it working now or not?</p>
<p>I was fairly convinced that it had something to do with the fact that the ODBC driver was 32-bit.&#160; The Business Intelligence Development Studio is 32-bit, that’s why it worked fine using the 32-bit ODBC driver.&#160; But the Report Server is 64-bit, that’s why it couldn’t connect to DB2 using the 32-bit driver.</p>
<p>But why wasn’t the ODBC DSN showing up?&#160; After all, it must exist because the BIDS showed me the list of DSNs that were created.</p>
<p>And then I found the answer, as usual, on the internet.&#160; And it was fairly logical but sometimes you just don’t think of it.&#160; The ODBC Administrator that you launch from the Start &gt; Administrative Tools menu on a 64-bit server is the 64-bit version of the tool.&#160; And that 64-bit version only shows DSNs using 64-bit ODBC drivers.&#160; To get the 32-bit version of the ODBC Administrator you need to launch it manually through Explorer.</p>
<p>And now you may be wondering where on <span style="text-decoration: line-through">earth</span> disk you’re supposed to find that 32-bit version.&#160; Here’s the answer:</p>
<ul>
<li>The 32-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\SysWoW64 folder. </li>
<li>The 64-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\System32 folder. </li>
</ul>
<p>And indeed, that version of the tool showed me the DSNs and the DB2 driver.</p>
<p>(Why they didn’t rename the 64-bit version to odbcad<strong>64</strong>.exe – after all, that is what the 32 in the filename means – remains a mystery to me.)</p>
<p><strong>Sidenote</strong>: there appears to be an issue with this tool where both the 32 and 64-bit version of the tool show both the 32 and 64-bit DSNs.&#160; My server didn’t have this issue but it may be interesting to keep it in mind.&#160; More details about that issue in <a title="The 32-bit version of the ODBC Administrator tool and the 64-bit version of the ODBC Administrator tool display both the 32-bit user DSNs and the 64-bit user DSNs in a 64-bit version of the Windows operating system" href="http://support.microsoft.com/kb/942976" target="_blank">this Microsoft Support article</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.hoegaerden.be%2F2009%2F05%2F01%2Fis-it-32-or-64%2F&amp;title=Is%20it%2032%20or%2064%3F" id="wpa2a_2"><img src="http://blog.hoegaerden.be/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.hoegaerden.be/2009/05/01/is-it-32-or-64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

