dbTalk Databases Forums  

insert into linked server problem

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss insert into linked server problem in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kuNDze
 
Posts: n/a

Default insert into linked server problem - 03-06-2007 , 02:52 AM






hi,

on localServer i execute this query

INSERT INTO table (A, B, C)
SELECT A, B, C FROM LinkedServer.myDB.dbo.table

everything is fine. But if i execute this one

INSERT INTO LinkedServer.myDB.dbo.table (A, B, C)
SELECT A, B, C FROM table

it is very slow. Is there any solution to make it any faster?


Reply With Quote
  #2  
Old   
AlterEgo
 
Posts: n/a

Default Re: insert into linked server problem - 03-06-2007 , 11:22 AM






kundze,

Distributed transactions across servers are substantially slower than
similar transactions executed on the same server. Assuming your servers are
both SQL Servers with the same collation settings, turn on the "Collation
Compatible" parameter in the Server Options tab of the Linked Server
Properties dialog. This could help somewhat.

Have you checked the other common performance issues such as indexes, etc.?

-- Bill


"kuNDze" <kundze (AT) gmail (DOT) com> wrote

Quote:
hi,

on localServer i execute this query

INSERT INTO table (A, B, C)
SELECT A, B, C FROM LinkedServer.myDB.dbo.table

everything is fine. But if i execute this one

INSERT INTO LinkedServer.myDB.dbo.table (A, B, C)
SELECT A, B, C FROM table

it is very slow. Is there any solution to make it any faster?




Reply With Quote
  #3  
Old   
Ed Murphy
 
Posts: n/a

Default Re: insert into linked server problem - 03-06-2007 , 10:29 PM



kuNDze wrote:

Quote:
on localServer i execute this query

INSERT INTO table (A, B, C)
SELECT A, B, C FROM LinkedServer.myDB.dbo.table

everything is fine. But if i execute this one

INSERT INTO LinkedServer.myDB.dbo.table (A, B, C)
SELECT A, B, C FROM table

it is very slow. Is there any solution to make it any faster?
If you get on LinkedServer and execute this query:

INSERT INTO table (A, B, C)
SELECT A, B, C FROM localServer.myDB.dbo.table

is it also slow? Also, if you execute these queries:

INSERT INTO table2 (A, B, C)
SELECT A, B, C FROM localServer.myDB.dbo.table

INSERT INTO table (A, B, C)
SELECT A, B, C from table2

is the second one slow?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.