<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2008 &#8211; Inline Variable Assignment</title>
	<atom:link href="http://blog.sqlauthority.com/2008/06/15/sql-server-2008-inline-variable-assignment/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/06/15/sql-server-2008-inline-variable-assignment/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nava Raj Bogatee</title>
		<link>http://blog.sqlauthority.com/2008/06/15/sql-server-2008-inline-variable-assignment/#comment-45875</link>
		<dc:creator>Nava Raj Bogatee</dc:creator>
		<pubDate>Thu, 22 Jan 2009 06:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=648#comment-45875</guid>
		<description>Please, help me in the following.

Say, I have 2 Sql Server databases and I sometimes need to pull data from both of them.

SELECT a.* FROM LocalTable a 
INNER JOIN 
\\ip address\servername\dbname.remote_table b ON a.primarykey=b.somekey

Is there any way to fill the lengthy name of my remote server into a variable and use @var.remote_table in the code shown above? It often creates problem if ip address or servername changes and also makes the code look nasty. 

Please help me to get rid of this problem out.</description>
		<content:encoded><![CDATA[<p>Please, help me in the following.</p>
<p>Say, I have 2 Sql Server databases and I sometimes need to pull data from both of them.</p>
<p>SELECT a.* FROM LocalTable a<br />
INNER JOIN<br />
\\ip address\servername\dbname.remote_table b ON a.primarykey=b.somekey</p>
<p>Is there any way to fill the lengthy name of my remote server into a variable and use @var.remote_table in the code shown above? It often creates problem if ip address or servername changes and also makes the code look nasty. </p>
<p>Please help me to get rid of this problem out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sumit sharma</title>
		<link>http://blog.sqlauthority.com/2008/06/15/sql-server-2008-inline-variable-assignment/#comment-39491</link>
		<dc:creator>sumit sharma</dc:creator>
		<pubDate>Wed, 25 Jun 2008 09:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=648#comment-39491</guid>
		<description>It is a nice feature of sqlserver2008  
thanks..</description>
		<content:encoded><![CDATA[<p>It is a nice feature of sqlserver2008<br />
thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2008/06/15/sql-server-2008-inline-variable-assignment/#comment-39473</link>
		<dc:creator>Jerry Hung</dc:creator>
		<pubDate>Tue, 24 Jun 2008 13:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=648#comment-39473</guid>
		<description>This will be a wonderful feature to have

now when we will upgrade to SQL 2008... that&#039;s another story</description>
		<content:encoded><![CDATA[<p>This will be a wonderful feature to have</p>
<p>now when we will upgrade to SQL 2008&#8230; that&#8217;s another story</p>
]]></content:encoded>
	</item>
</channel>
</rss>
