Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2009, 10:48 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server 2005 Replication shifts datetime fields

Hi,

I'm currently working on synchronizing two databases on the same SQL Server 2005 instance.
One database publishes and distributes an article.
The other database is the subscriber.

One table contains a datetime column. Once records in this tables are synchronized on the subscriber, there is an offset of 1 hour.

e.g.: on the publisher the datetime is 2008-12-19 00:00:00.000
whereas on the subscriber the value is 2008-12-18 23:00:00.000

I have been searching the internet for similar posts. There are a number, but no answer yet that helps me out.

Thank you in advance!

Regards Roeland Verbeek
 
Old January 8th, 2009, 03:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Does the system time on both the publisher and subscriber look same or different?
__________________
- Vijay G
 
Old January 8th, 2009, 05:26 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What about replication and UTC time?
 
Old February 27th, 2009, 11:33 AM
Registered User
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solved

I'm a bit reluctant to admit that the problem wasn't on the SQL side.

Our customers are running their business on Navision (Microsoft Dynamics Nav). Navision uses SQL server as database.

It appears that if you enter a date time in Navision, everything looks OK. Running a query within Navision shows the correct date time.

However, the record stored in SQL Server it self already shows a one hour shift. And this record is replicated.

To be short: SQL works okay, but Navision uses some kind of time zone setting to store the actual data.

Thanks for your time!





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server Naming convention for Replication darrenb SQL Server 2005 3 May 3rd, 2008 02:50 PM
Cool new SQL Server Replication Monitoring product jkatsos SQL Server 2000 0 April 20th, 2006 09:44 PM
SQL Server Transactional Replication with Triggers RRNP SQL Language 0 October 4th, 2004 05:18 PM
SQL Server Transactional Replication with Triggers RRNP SQL Language 0 October 4th, 2004 05:17 PM
MS SQL Server Replication rodmcleay SQL Server 2000 2 August 12th, 2004 02:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.