replication Error: MSSQLServer, Error number: 8152

  • i apologize if this in the wrong place.

    i have a replication job publishing to 7 other instances, on one of the instances synchronization fails due to the following error:

    String or binary data would be truncated. MSSQLServer, Error number: 8152. what is stumping me is both tables only contain integer data types and as far as i can tell are completely the same, any help would be greatly appreciated.

  • Any chance you have a trigger on the table in one of the subscribers?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • no but i do have 3 triggers on the published table?

  • Just a shot, but try temporarily disabling the triggers to see if the issue goes away. And I'm curious, what do these triggers do?

    I've also seen situations where extremely long object names (i.e. index names, table, or stored-procedure names) causing this. I can't remember where I read it but if I remember correctly there is a limit on the column that holds the "alter" command is limited to 4000 characters, whereas in many cases the text that contains your stored-procedure or index can be considerably larger.

    You may want to look at that as well if disabling the triggers doesn't help you

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • disabling the triggers did not work. if helps to see, here is the command its breaking on;

    Command attempted:

    create procedure [dbo].[sp_MSins_dbot_TABLEName_msrepl_ccs]

    @c1 int,

    @c2 int,

    @c3 int

    as

    begin

    if exists (select *

    from [dbo].[t_TABLENAME]

    where [TableID] = @c3)

    begin

    update [dbo].[t_TABLENAME] set

    [ItemID] = @c1,

    [DescriptorGroupID] = @c2

    where [TableID] = @c3

    end

    else

    begin

    insert into [dbo].[t_TABLENAME](

    [ItemID],

    [DescriptorGroupID],

    [TableID]

    ) values (

    (Transaction sequence number: 0x0000001900009E25006400000000, Command ID: 52)

    Error messages:

    String or binary data would be truncated. (Source: MSSQLServer, Error number: 8152)

    Get help: http://help/8152

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply