Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Implicit transactions and views on linked server

Author  Topic 

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2006-05-04 : 05:55:04
We've set up two linked servers (SRV1 and SRV2), one of them is in the local datacenter and the other is in some other place. The two servers are linked and everything seems to work fine...so far.

Business Object Data Integrator (BODI) generates some code that runs on SRV1 but reads data off SRV2. Using profiler we have found that the following code is generated(dbo.GBN_FYLKE is a view on SRV1):
set quoted_identifier on
set implicit_transactions off
set cursor_close_on_commit off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set language us_english
set dateformat mdy
set datefirst 7
set implicit_transactions on

SET ARITHABORT ON

IF @@TRANCOUNT > 0 COMMIT TRAN

SELECT "NUMMER", "NAVN", "REG_KODE"
FROM "DBO"."GBN_FYLKE"
...
The problem is that the database doesn't return anything at all...it just hangs without giving any kind of recordset back. We've tried doing this in Query Analyzer and the same thing happens which is nothing. However; when we run this in query analyzer and set the implicit transactions to "off" everything works fine. The problem with this is that we can't change the BODI generated code. Have anyone experienced anything like this, or do you have any ingenious workarounds...? We have found the setting "Require distributed transactions for server-to-server communication" but we are not sure if this can do us any good, or cause us any problems.

All insigths are welcome

--
Lumbago
"Real programmers don't document, if it was hard to write it should be hard to understand"
   

- Advertisement -