I have an existing merge replication running on a publisher that is SQL Server 2K. Subscribers are MSDE.
I add a new column by going to the publications-->Properties and selecting Add New Column. In here I specify the column to be of type bit, default value = 1 and NOT NULL. On my publisher, the column is correctly created and populated with a 1 for all existing rows. However on my subscribers the column gets created with ALLOW NULLS. Because this happens, all rows get populated with NULL. Default values only get inserted into existing rows if ALLOW NULLS is false on the new column.
What can I do to prevent this? Why does NOT NULL propagate to the subscribers?
Related to this question, will the merge agent EVER know that these rows have different values in this column(i.e. the publisher has a 1 while the subscriber has a NULL)?? I know that it will if the row is updated by the user but how about if the row is never updated?
TIA!
J
I add a new column by going to the publications-->Properties and selecting Add New Column. In here I specify the column to be of type bit, default value = 1 and NOT NULL. On my publisher, the column is correctly created and populated with a 1 for all existing rows. However on my subscribers the column gets created with ALLOW NULLS. Because this happens, all rows get populated with NULL. Default values only get inserted into existing rows if ALLOW NULLS is false on the new column.
What can I do to prevent this? Why does NOT NULL propagate to the subscribers?
Related to this question, will the merge agent EVER know that these rows have different values in this column(i.e. the publisher has a 1 while the subscriber has a NULL)?? I know that it will if the row is updated by the user but how about if the row is never updated?
TIA!
J