dbTalk Databases Forums  

Problem deleting from a local sql 2005 table using a linked sql server 2000

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss Problem deleting from a local sql 2005 table using a linked sql server 2000 in the microsoft.public.sqlserver.server forum.



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

Default Problem deleting from a local sql 2005 table using a linked sql server 2000 - 12-07-2005 , 08:28 PM






I encountered a problem with one of my queries when upgrading from
sql2000 to 2005
First Case:
Local server is running SQ: Server 2000.
The server "rmt" is a SQL Server 2000 linked server (using sqloledb as
provider)
The statement runs fine.

Second case:
Local server is SQL Server 2005
The server "rmt" is a SQL Server 2000 linked server (using SQLNCLI as
provider)
The same SQL statement will time out.

The SQL is:
DELETE FROM TableName
WHERE TableKey IN
(SELECT TableKey rmt.dbname.dbo.TableName
WHERE LastChangeDateTime > @LastChange) OR
(TableKey NOT IN
(SELECT TableKey FROM rmt.dbname.dbo.TableName))

Any help getting this resolved would be greatly appreciated.


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.