dbTalk Databases Forums  

Replication broken, need to delete records from replication. Help.

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss Replication broken, need to delete records from replication. Help. in the microsoft.public.sqlserver.replication forum.



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

Default Replication broken, need to delete records from replication. Help. - 12-04-2009 , 01:38 PM






ultra short version: I need a way to delete a particular command (in
the system tables) that's not applying correctly.

Long version:
I added a table to replication while there was a DDL trigger on the
database. That trigger did not deal well with the particular
ARITHABORT options, and choked while trying to add an article to
publication. The problem that I now have is that I'm getting the
following error:

(Transaction sequence number: 0x00001BD900000051008C00000000, Command
ID: 6)

Error messages:
Target string size is too small to represent the XML instance (Source:
MSSQLServer, Error number: 6354)
Get help: http://help/6354
Target string size is too small to represent the XML instance (Source:
MSSQLServer, Error number: 6354)
Get help: http://help/6354


I've dropped that article and recreated the replication while the
trigger is off, but that's queued up behind the bad commands. How do
find and delete this bad command?

Reply With Quote
  #2  
Old   
Paul Ibison
 
Posts: n/a

Default Re: Replication broken, need to delete records from replication. Help. - 12-04-2009 , 04:42 PM






As a stop-gap you could use the profile to continue on data consistency
errors and add 6354 to the skiperrors command.
HTH,
Paul Ibison

Reply With Quote
  #3  
Old   
M Bourgon
 
Posts: n/a

Default Re: Replication broken, need to delete records from replication.Help. - 12-07-2009 , 11:54 AM



On Dec 4, 4:42*pm, "Paul Ibison" <Paul.Ibi... (AT) ReplicationAnswers (DOT) Com.
(donotspam)> wrote:
Quote:
As a stop-gap you could use the profile to continue on data consistency
errors and add 6354 to the skiperrors command.
HTH,
Paul Ibison
Thanks, Paul. I'd also found a way to delete the rows involved, but
wound up not needing either.

After viewing the browser commands using sp_browsereplcmds, I figured
out the problem. The schemas commands for replication (running the
schema script) were too long for the DDL trigger we had set up on the
target database. For some reason eventdata() couldn't cope with it.
Which is a major bummer, since we'd been setting up DDL triggers for
auditing, and they worked great... except for this issue and another
with maintenance.

Disabled the DDL trigger and it successfully applied the schema, and
was good to go.

Thanks for the help.
M

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.