Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2007, 09:42 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SSIS Error - Transaction context in use by...

All

I'm developing a package in SSIS reading data from two databases on a SQL 2000 server and moving the data (with some transformation) to a SQL 2005 server. I am executing the package on the 2005 box.

The package must employ transactions and having configured MSDTC on both servers I still seem to get the error "Transaction context in use by another session" when setting the TransactionOption value to required for the control. When executing, the package starts validation phases, the transaction is started in DTC (on all the relevant servers) but fails when the scenario below is encountered.

I do the following inside a Data-Flow-Task:

Create and OLE DB Source connection that points to a connection manager configured against databaseA on the SQL 2000 server. The following SQL example applies:

Select col1, col2...coln
from databaseA.dbo.table1

Create and OLE DB Source connection that points to a connection manager configured against databaseB on the SQL 2000 server. The following SQL example applies:

Select col1, col2...coln
from databaseA.dbo.table1

Both of the OLE DB Source outputs are directed through a Union Transformation (since the structure of databaseA and databaseB are identical - only the data in each database is different).

The output of the union is directed to a Multicast Transformation. The multicast directs it's output to two separate OLE DB destinations.

Destination1 - SQL Server 2000 table is populated with multicast output stream 1.
Destination2 - SQL Server 2005 table is populated with multicast output stream 2.

Both of the destinations above have their own connection managers.

When I execute the data-flow-task I get a clutch of errors as follows. If I simply set the TransactionOption to 'NotSupported' or 'Supported' instead of 'Required', this task executes successfully. Also, if I split the task into two separate data-flow tasks (ie: select from databaseA and write Destination1 in one data flow and select from databaseB and write to Destination2 in another data flow - the package will succeed).

I have done many searches on MSDN/Technet/Google etc. to find a solution here. The bottom line is, I need to employ a transaction in this package and haven't been ab;e to get it working despite haviung broken the package down to bare bones and creating a dummy environment

Error: 0xC0202009 at Insert Unprocessed Keys From DatabaseA & DatabaseB, Write Keys - SQL_DEST_2000 [104]: An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E14 Description: "Transaction context in use by another session.".
Error: 0xC0202009 at Insert Unprocessed Keys From DatabaseA & DatabaseB, Write Keys - SQL_DEST_2000 [104]: An OLE DB error has occurred. Error code: 0x80040E37.
An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E37 Description: "Transaction context in use by another session.".
Error: 0xC004701A at Insert Unprocessed Keys From DatabaseA & DatabaseB, DTS.Pipeline: component "Write Keys - SOURCE" (104) failed the pre-execute phase and returned error code 0xC0202040.

Thanks in advance
David
 
Old April 23rd, 2007, 11:11 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Are you also moving the primary key in the transformation?

Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS - SSIS Migration Error carumuga SQL Server DTS 3 July 4th, 2008 09:47 AM
Transaction Log Error hugh@kmcnetwork.com SQL Server 2000 1 June 4th, 2008 09:26 PM
SSIS Error - Transaction context in use by another ACDC BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 February 6th, 2007 09:54 AM
Distributed Transaction Error ejan Pro VB 6 7 July 24th, 2006 08:01 AM
Linked server transaction error harido SQL Server 2000 2 September 30th, 2005 01:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.