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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update a linked Server

Status
Not open for further replies.

Chris9966

Programmer
Dec 8, 2017
1
DE
Hi,
I have an SQL_server 2008 R2 and linked Server to an MySq-Database.

Now I must update some tables (more then 20k) rows on the linked Server.
My Problem:
It takes very long when I update the tables on the linked Server:

update t
set t.field=s.field,t.field1=s.field1,t.field2=s.field2
from mysql...table1 t
inner join table s on t.key_field=s.key_field


best regar for youtr help

Christian


 
Maybe it would be quicker to export the table across servers and then update?
 
or update a local table and then replicate?

==================================
advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top