Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Merge Published Date Column wont replicate/accept NULL.

2 views
Skip to first unread message

Kevin J

unread,
Nov 24, 2009, 4:27:01 PM11/24/09
to
I have a table published using merge replication. There are a number of
subscribers.

One of the subscribers has a problem with a date column. When I try and set
the value to a NULL (NULL's allowed in DB) at the subscriber, the value is
accepted. But aftet the agent runs, the value is back to the value from the
publisher. If I try and NULL the value at the publisher, the value is never
accepted and returns back to the previous value.

The above is only true with NULL's. If I set the value to another datetime,
it works just fine in both directions.

SQL Server 2005 SP3 on all servers. Windows 2003 R2.
--
Kevin J

Paul Ibison

unread,
Nov 25, 2009, 2:11:42 PM11/25/09
to
Are nulls allowed at the subscriber? Perhaps this is a compensating cvhanges
issue if they aren't....
HTH,
Paul Ibison

Kevin J

unread,
Nov 25, 2009, 7:03:02 PM11/25/09
to
NULLS are allowed at the publisher.
--
Kevin J

Paul Ibison

unread,
Nov 26, 2009, 1:38:33 PM11/26/09
to
Any check constraints or triggers involved?
HTH,
Paul Ibison

Kevin J

unread,
Nov 26, 2009, 1:51:02 PM11/26/09
to
No constraints or triggers.

When I attempt to NULL the value in a SQL statement, it returns '1 row
affected', but when I check the table the value is still not null.

--
Kevin J

Paul Ibison

unread,
Nov 26, 2009, 3:00:20 PM11/26/09
to
I'm stuck! Can you run a trace on the publisher and do the insert - see if
this gives more info. We need to see if we can find what's doing the change.
Also do the insert in a transaction and select the row immediately
afterwards - just to check it goes in.
Thanks,
Paul

0 new messages