Share via

concurrnet inserts with execute sql task

Thirston Third 21 Reputation points
2022-04-06T11:46:38.837+00:00

When I try to make concurrent inserts into the same table with multiple execute sql task only 1 runs at a time. How do you run multiple execute sql tasks to insert data concurrently into the same table?

SQL Server Integration Services

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,551 Reputation points
    2022-04-07T05:47:30.67+00:00

    Hi @Thirston Third ,

    Have you added the Precedence Constraints between the tasks?

    If you only run the ExecuteSQLTask2, will the table update?

    If possible, please enable the profiler trace in SSMS and then run the package to catch the trace so that we could do more analysis.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.