Uncommitted reads in SSIS

Posted by OldBoy on Stack Overflow See other posts from Stack Overflow or by OldBoy
Published on 2010-06-03T17:44:17Z Indexed on 2010/06/14 10:12 UTC
Read the original article Hit count: 201

Filed under:
|
|

I'm trying to debug some legacy Integration Services code, and really want some confirmation on what I think the problem is:

We have a very large data task inside a control flow container. This control flow container is set up with TransactionOption = supported - i.e. it will 'inherit' transactions from parent containers, but none are set up here.

Inside the data flow there is a call to a stored proc that writes to a table with pseudo code something like:

"If a record doesn't exist that matches these parameters then write it"

Now, the issue is that there are three records being passed into this proc all with the same parameters, so logically the first record doesn't find a match and a record is created. The second record (with the same parameters) also doesn't find a match and another record is created.

My understanding is that the first 'record' passed to the proc in the dataflow is uncommitted and therefore can't be 'read' by the second call. The upshot being that all three records create a row, when logically only the first should.

In this scenario am I right in thinking that it is the uncommitted transaction that stops the second call from seeing the first? Even setting the isolation level on the container doesn't help because it's not being wrapped in a transaction anyway....

Hope that makes sense, and any advice gratefully received. Work-arounds confer god-like status on you.

© Stack Overflow or respective owner

Related posts about ssis

Related posts about integration