Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


replication Error: MSSQLServer, Error number: 8152


replication Error: MSSQLServer, Error number: 8152

Author
Message
jon.strout
jon.strout
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 33
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.
MyDoggieJessie
MyDoggieJessie
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4856 Visits: 7363
Any chance you have a trigger on the table in one of the subscribers?

______________________________________________________________________________
"Never argue with an idiot; They'll drag you down to their level and beat you with experience" ;-)
jon.strout
jon.strout
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 33
no but i do have 3 triggers on the published table?
MyDoggieJessie
MyDoggieJessie
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4856 Visits: 7363
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; They'll drag you down to their level and beat you with experience" ;-)
jon.strout
jon.strout
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 33
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]
      Wink 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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search