Hi,
I'm moving data from table on Server A to table on Server B.
Which SQL query will be faster? Option A runs from source server, Option B runs on destination server.
Option A runs on server A:
-
- INSERT INTO B.destination.dbo.table
- (field1)
- SELECT field1
- FROM dbo.source
Option B runs on server B
-
- INSERT INTO dbo.table
- (field1)
- SELECT field1
- FROM OPENQUERY(A, 'SELECT field1 from dbo.table')
The difference here is that the first option will update remote table, while the second option will read from remote source.
Regards,
Geert