SQL Server, Remote Stored Procedure, and DTC Transactions

Posted by marc on Stack Overflow See other posts from Stack Overflow or by marc
Published on 2008-09-22T16:22:45Z Indexed on 2010/04/24 20:23 UTC
Read the original article Hit count: 280

Filed under:
|
|
|

Our organization has a lot of its essential data in a mainframe Adabas database. We have ODBC access to this data and from C# have queried/updated it successfully using ODBC/Natural "stored procedures".

What we'd like to be able to do now is to query a mainframe table from within SQL Server 2005 stored procs, dump the results into a table variable, massage it, and join the result with native SQL data as a result set.

The execution of the Natural proc from SQL works fine when we're just selecting it; however, when we insert the result into a table variable SQL seems to be starting a distributed transaction that in turn seems to be wreaking havoc with our connections.

Given that we're not performing updates, is it possible to turn off this DTC-escalation behavior?

Any tips on getting DTC set up properly to talk to DataDirect's (formerly Neon Systems) Shadow ODBC driver?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about msdtc