How to mention NOLOCK during SSIS import and export wizard

Hello experts,

I wanted to copy around 20 tables from one db to another using import and expoert wizard but without locking the source tables. Is there any option inside the wizard where in i can check that option or any other alternative?
Thanks
parpaaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
alainbrydenConnect With a Mentor Commented:
Well you said you were testing, did the transfer work without locking or no? Is there any issue you're having in accomplishing some task?

--
Alain
0
 
alainbrydenCommented:
Copying entire tables can't not lock the source because of race conditions that could occur. If the table contents were copied over, and a new entry was made after the copy, and then the index was copied over, where the index has a reference to the new entry which wasn't copied over, then the copied table and index is corrupt. This is the only obvious example I can readily think of as to why the source tables need to be locked for the copy.

--
Alain
0
 
rgc6789Commented:
You could select * Into MigrateTable1 From Table1 for each of the 20 or so tables and then use the Import/Export, or you can link the db's and do the same as above directly from one to the other.
0
 
parpaaAuthor Commented:
@alain - in my case i am copying whole table so u mean to say there wouldn't be any lock. i am testing it now and so far there is no lock and it still has to transfer around 100k rows
0
 
parpaaAuthor Commented:
Yes it worked, sorry for the late response, been busy..
Thanks!!
0
All Courses

From novice to tech pro — start learning today.