<?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>Keyboard Face &#187; sql</title>
	<atom:link href="http://www.keyboardface.com/wp-404-handler.php/archives/tag/sql/feed/?404;http://www.keyboardface.com:80/archives/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.keyboardface.com</link>
	<description>when you find QWERTY imprinted on your cheek - it's time to go to bed.</description>
	<lastBuildDate>Wed, 30 Jun 2010 05:47:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MSSQL: Joining another server in a select statment</title>
		<link>http://www.keyboardface.com/archives/2009/04/21/mssql-joining-another-server-in-a-select-statment/</link>
		<comments>http://www.keyboardface.com/archives/2009/04/21/mssql-joining-another-server-in-a-select-statment/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:20:23 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.keyboardface.com/?p=154</guid>
		<description><![CDATA[I&#8217;ve often wondered if I could have a select statement that retrieved data from two databases at a time. I just got a SQL Server tip in the mail this morning that walks you through the steps. It&#8217;s awesome! Does everything and more. The keyword is OPENROWSET. 
Here&#8217;s the link:
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1353663_mem1,00.html
Example from above article:
SELECT e1.EmployeeID, e2.FirstName, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve often wondered if I could have a select statement that retrieved data from two databases at a time. I just got a SQL Server tip in the mail this morning that walks you through the steps. It&#8217;s awesome! Does everything and more. The keyword is OPENROWSET. </p>
<p>Here&#8217;s the link:<br />
<a href="http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1353663_mem1,00.html">http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1353663_mem1,00.html</a></p>
<p>Example from above article:<br />
<code>SELECT e1.EmployeeID, e2.FirstName, e2.LastName, e1.JobTitle<br />
FROM OPENROWSET(<br />
'SQLNCLI',<br />
'Server=SqlSrv1;Trusted_Connection=yes;',<br />
'SELECT EmployeeID, FirstName, LastName, JobTitle<br />
FROM AdventureWorks.HumanResources.vEmployee'<br />
) AS e1<br />
INNER JOIN OPENROWSET(<br />
'Microsoft.Jet.OLEDB.4.0',<br />
'C:\Data\Employees.mdb'; 'admin';' ',<br />
'SELECT EmployeeID, FirstName, LastName, JobTitle<br />
FROM Employees'<br />
) AS e2<br />
ON e1.EmployeeID = e2.EmployeeID<br />
ORDER BY e2.LastName, e2.FirstName</code></p>
<p>Here&#8217;s the MSDN link on OPENROWSET.<br />
<a href="http://msdn.microsoft.com/en-us/library/ms190312.aspx">http://msdn.microsoft.com/en-us/library/ms190312.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.keyboardface.com/archives/2009/04/21/mssql-joining-another-server-in-a-select-statment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

