Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking table for BCP Out 1

Status
Not open for further replies.

jabrony76

Technical User
Apr 23, 2001
125
0
0
US
Hi All -

I've got a job that bcp's a table out at night but the table is quite large (4.2 million rows) and the bcp takes around 15 minutes.

I want to make sure that there are no INSERT / UPDATE / DELETE statements executed on the table during the bcp out and it seems the -h"TABLOCK" switch only works on the bcp in function.

The job already checks for executing processes at the start and will not run the bcp until they are complete.

I'm concerned about processes that that may be started after the bcp kicks off.


Anyone have any ideas how I can lock the table during the duration of the bcp?

Thanks in advance!
Andy


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top