<?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/"
	
	>
<channel>
	<title>
	Comments on: SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY not working with Linked Server or Remote server ???	</title>
	<atom:link href="https://varindersandhu.in/2011/01/20/scope_identity-ident_current-and-identity-not-working-with-linked-server-or-remote-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://varindersandhu.in/2011/01/20/scope_identity-ident_current-and-identity-not-working-with-linked-server-or-remote-server/</link>
	<description>Keep it Simple and Smart</description>
	<lastBuildDate>Sat, 26 Feb 2011 11:11:14 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Varinder Sandhu		</title>
		<link>https://varindersandhu.in/2011/01/20/scope_identity-ident_current-and-identity-not-working-with-linked-server-or-remote-server/#comment-14</link>

		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Sat, 26 Feb 2011 11:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://theitarticles.wordpress.com/?p=407#comment-14</guid>

					<description><![CDATA[As  mentioned above, fixed this problem by writing another select statement for selecting identity based on unique parameters in that scope.

Temp table may be another solution for this issue (Not tried)

Let me try to explain 

As we inserting the records on remote database with Linked server. In the same transaction we can insert the same record to temp table on the same server. 

That way we can easily retrieve the unique ID 

If anybody has any idea, please share.]]></description>
			<content:encoded><![CDATA[<p>As  mentioned above, fixed this problem by writing another select statement for selecting identity based on unique parameters in that scope.</p>
<p>Temp table may be another solution for this issue (Not tried)</p>
<p>Let me try to explain </p>
<p>As we inserting the records on remote database with Linked server. In the same transaction we can insert the same record to temp table on the same server. </p>
<p>That way we can easily retrieve the unique ID </p>
<p>If anybody has any idea, please share.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Database Caching 19/110 queries in 0.023 seconds using Disk

Served from: varindersandhu.in @ 2025-10-30 11:19:38 by W3 Total Cache
-->