Select the product you need help with
DateTime values are rounded to the nearest second when a business logic handler is used in SQL Server 2008 or SQL Server 2008 R2Article ID: 2598510 - View products that this article applies to. SYMPTOMSConsider the following scenario:
CAUSEThis issue occurs because the DateTime values are stored in a variable of data type variant when data is passed between managed code and unmanaged code. Note The DateTime variant does not support the milliseconds date part. Note The SQL Server merge agent is written in unmanaged code. The business logic for the Microsoft .NET assembly is written in managed code. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. WORKAROUNDYou may be able to work around this issue by storing the DateTime values in a column that has the data type char or the data type varchar. MORE INFORMATIONFor example, the issue that is described in the "Symptoms" section occurs if the custom business logic handles conflicting UPDATE statements at the publisher and subscriber. The milliseconds time part is lost when the publisher dataset or the subscriber dataset is copied into the custom dataset, and then the custom dataset is returned to the merge replication reconciler. This issue occurs if the data is not changed in custom code that resembles the following code sample. REFERENCESFor more information about how to implement a business logic handler for a merge article, visit the following MSDN website: http://msdn.microsoft.com/en-us/library/ms147911.aspx
(http://msdn.microsoft.com/en-us/library/ms147911.aspx)
PropertiesArticle ID: 2598510 - Last Review: April 16, 2012 - Revision: 2.0 APPLIES TO
|


Back to the top








