<?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; Fix: Server: Msg 7391, Level 16, State 1, Line 1</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Doug</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-129395</link>
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 22:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-129395</guid>
		<description><![CDATA[I&#039;m encountering this when calling a stored procedure on a linked server.  DTC and whatnot is all configured properly as I can exec my call without a problem from management studio.

declare @recid as varchar(15) 
exec mylinkedserver.master.dbo.xp_gmnewrecid &#039;SYSTEM&#039;, @recid output
print @recid

That works fine.  

When I try to exec the same sp code _from within a trigger_, I get
OLE DB provider &quot;SLQNCLI10&quot; for linked server &quot;mylinkedserver&quot; returned message &quot;No Transaction is active.&quot;.

What&#039;s going on??  Is there a setting I need to flip to allow triggers to do this or.. ?? 

Any thoughts appreciated!]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m encountering this when calling a stored procedure on a linked server.  DTC and whatnot is all configured properly as I can exec my call without a problem from management studio.</p>
<p>declare @recid as varchar(15)<br />
exec mylinkedserver.master.dbo.xp_gmnewrecid &#8216;SYSTEM&#8217;, @recid output<br />
print @recid</p>
<p>That works fine.  </p>
<p>When I try to exec the same sp code _from within a trigger_, I get<br />
OLE DB provider &#8220;SLQNCLI10&#8243; for linked server &#8220;mylinkedserver&#8221; returned message &#8220;No Transaction is active.&#8221;.</p>
<p>What&#8217;s going on??  Is there a setting I need to flip to allow triggers to do this or.. ?? </p>
<p>Any thoughts appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-110318</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 12:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-110318</guid>
		<description><![CDATA[Another option is to use OPENROWSET
http://beyondrelational.com/blogs/madhivanan/archive/2007/11/24/select-columns-from-exec-procedure-name-is-this-possible.aspx]]></description>
		<content:encoded><![CDATA[<p>Another option is to use OPENROWSET<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/11/24/select-columns-from-exec-procedure-name-is-this-possible.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/11/24/select-columns-from-exec-procedure-name-is-this-possible.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rizwan Ansari</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-110308</link>
		<dc:creator><![CDATA[Rizwan Ansari]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 10:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-110308</guid>
		<description><![CDATA[Updating Local table by linked server query can be done thru OPENQUERY.

INSERT INTO #TempTable SELECT * FROM Openquery([LinkServer],&#039;Exec master..PROC)]]></description>
		<content:encoded><![CDATA[<p>Updating Local table by linked server query can be done thru OPENQUERY.</p>
<p>INSERT INTO #TempTable SELECT * FROM Openquery([LinkServer],&#8217;Exec master..PROC)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-50371</link>
		<dc:creator><![CDATA[Pankaj]]></dc:creator>
		<pubDate>Wed, 01 Apr 2009 15:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-50371</guid>
		<description><![CDATA[I was gettig this error since yesterday and tried every possible way to solve it. It started occuring when I installed SP2 on my win2003 server. 

Ultimately I rebooted the server where I was inserting data in temp table from stored procedure of one of the linked server and now no issues at all

Thanks]]></description>
		<content:encoded><![CDATA[<p>I was gettig this error since yesterday and tried every possible way to solve it. It started occuring when I installed SP2 on my win2003 server. </p>
<p>Ultimately I rebooted the server where I was inserting data in temp table from stored procedure of one of the linked server and now no issues at all</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos Cavalcanti</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-46380</link>
		<dc:creator><![CDATA[Marcos Cavalcanti]]></dc:creator>
		<pubDate>Thu, 05 Feb 2009 23:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-46380</guid>
		<description><![CDATA[Doctor Dave,

This error 7391 is really generic and isn´t easy to find the source.
In my enviroment Win2k3 R2 + SQL20005 SP2 and Linux Red Hat Enterprise + Oracle 9.2.0.1 show me this error after created linked server like KB documents. I change regedit, update MDAC, ports, disable firewall, enable MSDTC with network services account. But I found the in METALINK that this error begins because oracle 9.1.0.1 had a bug and is must necessary give a new version of Oracle Services for Microsoft Transaction Server. After that, the linked server worked very well.
Thanks for help. 
Marcos Cavalcanti, João Pessoa city, Paraiba state, Brazil.]]></description>
		<content:encoded><![CDATA[<p>Doctor Dave,</p>
<p>This error 7391 is really generic and isn´t easy to find the source.<br />
In my enviroment Win2k3 R2 + SQL20005 SP2 and Linux Red Hat Enterprise + Oracle 9.2.0.1 show me this error after created linked server like KB documents. I change regedit, update MDAC, ports, disable firewall, enable MSDTC with network services account. But I found the in METALINK that this error begins because oracle 9.1.0.1 had a bug and is must necessary give a new version of Oracle Services for Microsoft Transaction Server. After that, the linked server worked very well.<br />
Thanks for help.<br />
Marcos Cavalcanti, João Pessoa city, Paraiba state, Brazil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viresh</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-42681</link>
		<dc:creator><![CDATA[Viresh]]></dc:creator>
		<pubDate>Thu, 11 Sep 2008 07:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-42681</guid>
		<description><![CDATA[Hi,

I received following error when using begin transaction in stored procedure insrting record on linked server.

Without begin the process works fine.

OLE DB provider &quot;SQLNCLI&quot; for linked server &quot;LINK_TEST&quot; returned message &quot;The transaction manager has disabled its support for remote/network transactions.&quot;.
Msg 50000, Level 16, State 1, Procedure usp_DataTrf, Line 114
The operation could not be performed because OLE DB provider &quot;SQLNCLI&quot; for linked server &quot;LINK_TEST&quot; was unable to begin a distributed transaction.

Stored Procedure Name - usp_DataTrf
Linked server name - LINK_TEST
SQL server 2005 enterprise edition
Windows Server 2003]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I received following error when using begin transaction in stored procedure insrting record on linked server.</p>
<p>Without begin the process works fine.</p>
<p>OLE DB provider &#8220;SQLNCLI&#8221; for linked server &#8220;LINK_TEST&#8221; returned message &#8220;The transaction manager has disabled its support for remote/network transactions.&#8221;.<br />
Msg 50000, Level 16, State 1, Procedure usp_DataTrf, Line 114<br />
The operation could not be performed because OLE DB provider &#8220;SQLNCLI&#8221; for linked server &#8220;LINK_TEST&#8221; was unable to begin a distributed transaction.</p>
<p>Stored Procedure Name &#8211; usp_DataTrf<br />
Linked server name &#8211; LINK_TEST<br />
SQL server 2005 enterprise edition<br />
Windows Server 2003</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blah</title>
		<link>http://blog.sqlauthority.com/2007/04/06/sql-server-fix-server-msg-7391-level-16-state-1-line-1/#comment-33701</link>
		<dc:creator><![CDATA[blah]]></dc:creator>
		<pubDate>Tue, 12 Feb 2008 22:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/06/fix-server-msg-7391-level-16-state-1-line-1/#comment-33701</guid>
		<description><![CDATA[Update stmt. fails within a transaction over linked server
(A-B)

OLE DB provider &quot;SQLNCLI&quot; for linked server &quot;B&quot; returned message &quot;No transaction is active.&quot;.
Msg 7391, Level 16, State 2, Procedure sp_abc
The operation could not be performed because OLE DB provider &quot;SQLNCLI&quot; for linked server &quot;B&quot; was unable to begin a distributed transaction.

But this error occurs only one-way.

On Server A:

/- ERROR (above)

begin tran
update B.dbmaint..abc
set x=5 where y = 4
commit tran

-/

However, it works without a transaction

/-WORKS

update B.dbmaint..abc
set x=5 where y = 4

-/

On server B:

/- WORKS

begin tran
update A.dbmaint..abc
set x=5 where y = 4
commit tran

-/

Both servers run sql2005. Don&#039;t know about the service packs though.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Update stmt. fails within a transaction over linked server<br />
(A-B)</p>
<p>OLE DB provider &#8220;SQLNCLI&#8221; for linked server &#8220;B&#8221; returned message &#8220;No transaction is active.&#8221;.<br />
Msg 7391, Level 16, State 2, Procedure sp_abc<br />
The operation could not be performed because OLE DB provider &#8220;SQLNCLI&#8221; for linked server &#8220;B&#8221; was unable to begin a distributed transaction.</p>
<p>But this error occurs only one-way.</p>
<p>On Server A:</p>
<p>/- ERROR (above)</p>
<p>begin tran<br />
update B.dbmaint..abc<br />
set x=5 where y = 4<br />
commit tran</p>
<p>-/</p>
<p>However, it works without a transaction</p>
<p>/-WORKS</p>
<p>update B.dbmaint..abc<br />
set x=5 where y = 4</p>
<p>-/</p>
<p>On server B:</p>
<p>/- WORKS</p>
<p>begin tran<br />
update A.dbmaint..abc<br />
set x=5 where y = 4<br />
commit tran</p>
<p>-/</p>
<p>Both servers run sql2005. Don&#8217;t know about the service packs though.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

