|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Tuesday, June 11, 2013 6:34 AM
Points: 6,463,
Visits: 1,388
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, December 07, 2006 10:00 AM
Points: 38,
Visits: 1
|
|
I bumped up against this problem a short while ago on a project. I eventually concluded that the problem occurs because the default constraint is given an arbitrarily assigned name on the subscriber and because that name is different to the name assigned by the publisher when you add the column, it does not know what to delete at the subscriber when you drop the column. I concluded as did you: drop the constraint at the subscriber before you drop the column at the publisher using the using the repl stored procs or EM.
"See how deep the rabbit hole goes..."
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, June 04, 2013 11:05 AM
Points: 304,
Visits: 169
|
|
So, to test your theory did you create default on the subscriber with the same name as on the publisher then try and drop the column?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, December 07, 2006 10:00 AM
Points: 38,
Visits: 1
|
|
Nope. Never got that far. If I was going to drop a column at the publisher, I first dropped the default constraint at the subscriber. Simple.
"See how deep the rabbit hole goes..."
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, December 07, 2006 10:00 AM
Points: 38,
Visits: 1
|
|
Nope. Never got that far. If I was going to drop a column at the publisher, I first dropped the default constraint at the subscriber. Simple.
"See how deep the rabbit hole goes..."
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, December 07, 2006 10:00 AM
Points: 38,
Visits: 1
|
|
Nope. Never got that far. If I was going to drop a column at the publisher, I first dropped the default constraint at the subscriber. Simple.
"See how deep the rabbit hole goes..."
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 12:10 PM
Points: 353,
Visits: 129
|
|
I ran into a similar problem when adding a column with a default to a publication. The subscribers are all using SQLCE which I guess doesn't support default constraints so they would error out when trying to replicate the new column. Do you know of any way to add a column with a default constraint but not replicate the default constraint?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, December 07, 2006 10:00 AM
Points: 38,
Visits: 1
|
|
Yes. Add the oclumn using the repl stored procs or EM Repl tools, but add the default contraints directly in the table editor in EM or via queyr analyser. That way the publication will not be aware of the default constraint.
"See how deep the rabbit hole goes..."
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, September 21, 2004 8:27 AM
Points: 1,
Visits: 1
|
|
Hi: Thanks for the valuable information. We have encountered another problem with transactional replication I wonder if you can help us. Our user got an error: "Length of text, ntext, or image data (75916) to be replicated exceeds configured maximum 65536." My question: 1. How big should we set sp_configure 'max text repl size'? Do we have to worry about memory when we set it too high? 2. How do we calculate the max text repl size from the tables we have? Some ot our tables have several image and ntext columns. Is there a formula to calculate this? Thanks in advance for your help. Cynthia
|
|
|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Tuesday, June 11, 2013 6:34 AM
Points: 6,463,
Visits: 1,388
|
|
|
|
|