Bulk Insert Without Locking Table
-
Thursday, March 07, 2013 10:22 PMI am using and SSIS packge to insert updated rows into Table A. The data from Table A is being read by other users. How can I insert data and not lock up the table but only lock up the individual rows that are getting updated.
All Replies
-
Thursday, March 07, 2013 11:03 PM
I believe that the default behaviour for BULK INSERT is not lock the table. However, maybe the option "table lock on bulk load" is set? Check in sys.tables.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se- Proposed As Answer by Kalman TothMicrosoft Community Contributor, Moderator Friday, March 15, 2013 3:20 PM
- Marked As Answer by Kalman TothMicrosoft Community Contributor, Moderator Friday, March 22, 2013 11:23 PM
-
Friday, March 15, 2013 3:23 PMModerator
BOL: " Controlling Locking Behavior for Bulk Importhttp://msdn.microsoft.com/en-us/library/ms180876.aspx
Kalman Toth Database & OLAP Architect sqlusa.com
Paperback / Kindle: Pass SQL Exam 70-461 & Job Interview: Programming SQL Server 2012- Proposed As Answer by Naomi NMicrosoft Community Contributor, Moderator Sunday, March 24, 2013 2:28 AM
- Marked As Answer by Naomi NMicrosoft Community Contributor, Moderator Sunday, March 24, 2013 2:29 AM

