Hi,
 I have a pair of SQL Server 2005 (SQL Server 2005 - 9.00.3054.00 Build 3790:
 Service Pack 2) running on Windows 2K OS. Linked server is established and
 working fine for all type of queries except the following delete query.
 DELETE A from ttdb1.sasixp.sasi.aprn7030 A
 WHERE
 not EXISTS ( SELECT stulink
 FROM ttdb1.sasixp.sasi.astu7030 B
 WHERE B.stulink = A.stulink )
 But the same query is working fine in test server. Test SQL Server 2005
 version is SQL Server 2005 - 9.00.3042.00 Build 3790: Service Pack 2). But
 production server ver is SQL Server 2005 - 9.00.3054.00 Build 3790: Service
 Pack 2. This is the only difference between test server env & production
 env.
 When I run this query got the following error:
 OLE DB provider "SQLNCLI" for linked server "ttdb1" returned message
 "Multiple-step OLE DB operation generated errors. Check each OLE DB status
 value, if available. No work was done.".
 Msg 7202, Level 11, State 2, Line 1
 Could not find server 'TTDB1' in sys.servers. Verify that the correct server
 name was specified. If necessary, execute the stored procedure
 sp_addlinkedserver to add the server to sys.servers.
 Any idea what causes this problem?
 Thanks in advance for your help.
 VenkatPlease read the post below, I had the same issue and got it fixed by changing
the servername.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=274270&SiteID=1
Regards,
Henry
"Venkat N" wrote:
> Hi,
> I have a pair of SQL Server 2005 (SQL Server 2005 - 9.00.3054.00 Build 3790:
> Service Pack 2) running on Windows 2K OS. Linked server is established and
> working fine for all type of queries except the following delete query.
> DELETE A from ttdb1.sasixp.sasi.aprn7030 A
> WHERE
> not EXISTS ( SELECT stulink
> FROM ttdb1.sasixp.sasi.astu7030 B
> WHERE B.stulink = A.stulink )
> But the same query is working fine in test server. Test SQL Server 2005
> version is SQL Server 2005 - 9.00.3042.00 Build 3790: Service Pack 2). But
> production server ver is SQL Server 2005 - 9.00.3054.00 Build 3790: Service
> Pack 2. This is the only difference between test server env & production
> env.
> When I run this query got the following error:
> OLE DB provider "SQLNCLI" for linked server "ttdb1" returned message
> "Multiple-step OLE DB operation generated errors. Check each OLE DB status
> value, if available. No work was done.".
> Msg 7202, Level 11, State 2, Line 1
> Could not find server 'TTDB1' in sys.servers. Verify that the correct server
> name was specified. If necessary, execute the stored procedure
> sp_addlinkedserver to add the server to sys.servers.
> Any idea what causes this problem?
> Thanks in advance for your help.
> Venkat
>
>
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment