question

Cros avatar image
Cros asked

Why does Bulk Insert block Update in SSIS?

I have an SSIS package set up like this:

Here is an image of the flow (I can't post image tags yet).

If I run only the New Rows flow the Bulk Insert finishes without a problem, but as soon as i connect the Live Rows flow the package stalls indefinitely. When I check the activity monitor the Update Newer Table Rows task stalls, blocked by the Insert New Rows task.

Why does the Bulk Insert not finish? What can I do tho make the package execute?

NB: I'm well aware that this might not be optimal, but I'm really interested in getting answers to the question as it is stated. Thanks!

This is a cross post from Stack Overflow, question 2026625.

sql-server-2005ssisupsert
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Trinity9bi avatar image
Trinity9bi answered

In your OLEDB Destination Task, where you insert the new rows, there's an option to define if SSIS will use Table Blocking or not. If you uncheck that option it should work.

Also one of my company's DBA has told me that there's a database configuration option which you can use to define how database engine must treat blocks between inserts and updates. The sintax to enable this option is: ALTER DATABASE SET READ_COMMITTED_SNAPSHOT ON;

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.