﻿<?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 2008 / SQL Server 2008 - General  / Replication Oracle to 2008R2 - truncated update commands? / 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>Sat, 25 May 2013 18:44:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Replication Oracle to 2008R2 - truncated update commands?</title><link>http://www.sqlservercentral.com/Forums/Topic1408961-391-1.aspx</link><description>Brilliant - never noticed that little SSMS 'feature' before!  Well that's got my "command" where i want it.Needless to say it runs fine from the SSMS window using 'exec'  but the replication still fails on update.Any thoughts where to go next?  Nothing much in GooglelandCommand attempted:{CALL "sp_MSupd_BULLPERSON" (62,'Mr','FRANK','Q','SPENCER',123456,NULL,'270944','M','1939-09-13 00:00:00','M',NULL,NULL,NULL,NULL,'2013-01-18 14:10:36',NULL,NULL,NULL,NULL,NULL,'(Transaction sequence number: 0x0000000000000000000700000000, Command ID: 2)Error messages:Invalid distribution command, state 2: transaction 0x0x0000000000000000000700000000 command 2{offset : 175 token offset: 174 state: 50) }. (Source: MSSQL_REPL, Error number: MSSQL_REPL21001)Get help: http://help/MSSQL_REPL21001</description><pubDate>Mon, 21 Jan 2013 04:57:52 GMT</pubDate><dc:creator>BrightonDBA</dc:creator></item><item><title>RE: Replication Oracle to 2008R2 - truncated update commands?</title><link>http://www.sqlservercentral.com/Forums/Topic1408961-391-1.aspx</link><description>ok just checking the basics here;I'm assuming you are reviewing the code in SSMS? by default, to save memory, SSMS limits results to the first 256 characters...have you already changed this to show the first 8K (if the command is larger than 8K, you need to use something else...SSMS will not show more than 8K, even if the string is longer:)[img]http://www.stormrage.com/blogpix/ResultsToText.png[/img][img]http://www.stormrage.com/blogpix/ResultsToGrid.gif[/img]</description><pubDate>Fri, 18 Jan 2013 11:22:58 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>Replication Oracle to 2008R2 - truncated update commands?</title><link>http://www.sqlservercentral.com/Forums/Topic1408961-391-1.aspx</link><description>I have set up an Oracle transactional publication on a single table as a test. Snapshot works ok so i assume we have good data mapping. However the replication is failing on update. When i try to view the failing command,  using sp_browsereplcmds, it is truncated. . sp_MSupd_BULLPERSON" (62,'Mr','FRANK','Q','SPENCER',12345,NULL,'678910','M','1939-09-13 00:00:00','M',NULL,NULL,NULL,NULL,'2013-01-18 14:10:36',NULL,NULL,NULL,NULL,NULL,'   --missing parameters here.This makes it impossible to test the sp_MSupd_Table command and isolate any problem field which is causing the update to fail.  If i look directly into the MSrepl_commands table the command is encoded. Looking in the sp_browsereplcmds script i see  sp_printstatement @query which i assume translates the coded command - is this truncating the command ? The error shown in the replication monitor does not reveal which field i need to look at I created a smaller publication so that the entire update with all parameters is visible. this works fine. For the same update it gives no error. Consequently i don't know it there is an errant data mapping in the larger publication or even if the larger publication is sending a truncated command! Any help appreciated.  Z </description><pubDate>Fri, 18 Jan 2013 09:06:38 GMT</pubDate><dc:creator>BrightonDBA</dc:creator></item></channel></rss>