dbTalk Databases Forums  

Update through linked server never returns

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


Discuss Update through linked server never returns in the comp.databases.ms-sqlserver forum.



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

Default Update through linked server never returns - 11-06-2003 , 06:25 PM






In our SQL database server, I set up a linked server
[TEST_LINKED_SERVER]. In this example, the linked server simply points
back to the server.

I did the following query at the SQL query analyser, and it worked
fine.

select * from [TEST_LINKED_SERVER].test_database.dbo.test_table
where test_col = 'def'

However, when I tred to do the following update, it never returned. I
had to cancel the query and waited for a long long while before it
came back.

update [TEST_LINKED_SERVER].test_database.dbo.test_table
set test_col = 'abc'
where test_col = 'def'

However, the above update worked perfectly if I did it without the
first 3 parts in the 4-part name (Of course, I ran this update at
test_database)

update test_table
set test_col = 'abc'
where test_col = 'def'

Since the above update worked, I think that it ruled out the
possibility of any locking / blocking issue.

Do you know why the one with 4-part name failed? How can I solve it?

Thanks
Dom

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 - 2013, Jelsoft Enterprises Ltd.