﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 General Discussion  / Problem updating remote table using linked server and 4 part naming / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 05:49:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Problem updating remote table using linked server and 4 part naming</title><link>http://www.sqlservercentral.com/Forums/Topic504768-149-1.aspx</link><description>I have a linked server setup to an informix database.  When I use 4 part naming to update an informix table, the wrong row is getting updated in a specific scenerio.update ERP_TRNG.fms441.informix.csta_user_whseset whse_code = '2323'where csta_user_whse_id = 'gfdsa'csta_user_whse_id is the primary key on the table and is defined as char(10).If the row with the key 'gfdsa' is the last row in the table, the update statement will alter the first row in the table.  If I use a key that is not the last row, then the update works fine.If I run the above statement, the first row (the csta_user_whse_id value is '5') will be updated.  If I then insert another row to the table:INSERT INTO ERP_TRNG.fms441.informix.csta_user_whseVALUES ('asdfg', '0500')and then do my update on 'gfdsa', the correct row is updated.If I didn't see it for myself, I'd think this is all just crazy talk.Thanks</description><pubDate>Wed, 21 May 2008 13:02:51 GMT</pubDate><dc:creator>msearle</dc:creator></item></channel></rss>