<?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>Personal Weblog of John Wood &#187; 2000</title>
	<atom:link href="http://www.webofwood.com/tag/2000/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webofwood.com</link>
	<description>Wordpress weblog of John Wood, a Database Administrator</description>
	<lastBuildDate>Fri, 16 Sep 2011 17:18:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Linked Server 64bit Deficiency</title>
		<link>http://www.webofwood.com/2009/08/07/linked_server_64bit/</link>
		<comments>http://www.webofwood.com/2009/08/07/linked_server_64bit/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 17:00:41 +0000</pubDate>
		<dc:creator>Woody</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[2000]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[32bit]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[linked server]]></category>
		<category><![CDATA[sproc]]></category>

		<guid isPermaLink="false">http://www.webofwood.com/2009/08/07/create-linked-server-view-of-sql-server-2000-32bit-on-64bit-sql-server-2005/</guid>
		<description><![CDATA[First off, I need to give recognition to Joel Mansford for his blog which gave me the answer to my problem. Connecting SQL Server 2005 x64 to SQL Server 7 (32bit) as a linked server!? After creating a linked server on a 64bit SQL Server 2005 instance, I then needed to create a view which [...]]]></description>
			<content:encoded><![CDATA[<p>First off, I need to give recognition to Joel Mansford for his blog which gave me the answer to my problem.<br />
<a href="http://joelmansford.wordpress.com/2007/08/10/connecting-sql-server-2005-x64-to-sql-server-7-32bit-as-a-linked-server/">Connecting SQL Server 2005 x64 to SQL Server 7 (32bit) as a linked server!? </a></p>
<p>After creating a linked server on a 64bit SQL Server 2005 instance, I then needed to create a view which referenced the linked server. The linked server is a SQL Server 2000 32bit instance. However, when I tried to create the view, I got this error:  <em>Cannot obtain the schema rowset &#8220;DBSCHEMA_TABLES_INFO&#8221; for OLE DB provider &#8220;SQLNCLI&#8221;.</em></p>
<p>This really proved to be a conundrum because I had just recently created the same linked server and view on another SQL 2005 instance. However, I had not yet connected the fact the 2005 instance was 32bit as opposed to the one I was now working on, which is 64bit.</p>
<p>I wrestled with it being a permissions issue for a while but ruled that out when I could not create the view even while using a domain admin account having authority of all the instances. A search on Google, using the above mentioned error message, turned up Joel&#8217;s blog. His specific problem was relative to SQL Server 7 but the answer applied to SQL Server 2000 also. He had found the original post of the ultimate solution and was good enough to include it in his blog which I have an excerpt here.</p>
<blockquote><p>I found an extremely helpful post by Marek Adamczuk at <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=62887&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=62887&amp;SiteID=1</a>. Marek  explains the 32-bit editions are missing a stored procedure on the master database called <strong>sp_tables_info_rowset_64.</strong></p>
<p>Marek’s solution is to create a wrapper on the master database as follows (his code not mine):</p>
<pre class="brush: sql">create procedure sp_tables_info_rowset_64
    @table_name sysname,
    @table_schema sysname = null,
    @table_type nvarchar(255) = null
as
declare @Result int set @Result = 0
exec @Result = sp_tables_info_rowset
    @table_name,
    @table_schema,
    @table_type</pre>
</blockquote>
<p>It would appear the existing sproc does the same thing but just needs to be referenced using the 64bit name. Kudos to both Joel and to Marek for making this solution available!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webofwood.com/2009/08/07/linked_server_64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

