Re: getutcdate() issues



The point I'm making is that the function is named "getutcdate" but is not
guaranteed to return current UTC datetime.

Ok, and GETDATE() and CURRENT_TIMESTAMP are supposed are supposed to return
the current local time. If your server has incorrect local time, guess
what? Those will be wrong too. As will the times recorded in the event
log, SQL Server's error log, Agent jobs will be starting at the wrong time,
Windows scheduled tasks will not run when they are expected, and the list
goes on and on... Why the discussion is isolated to GETUTCDATE() I have no
idea. The same problem exists if you are using ASP.NET, or JavaScript, or
WSH, or Perl, or PHP, etc. etc. -- they all use the system clock, and
believe that it is accurate.

Also : I don't think that relying on Windows auto-updates ( which many find
annoying and ignore or turn off ) for updating Windows timezones definitions
( including DST start/end ) is a serious enterprise database solution.

I still fail to understand why this is the database engine's fault. If your
server has the incorrect time there is plenty going wrong whether or not you
have a database engine installed. Just because Windows updates might be
annoying does not give an inattentive administrator an excuse.

Does anyone know how other databases/platforms handle this issue ?

Since most do not *require* an Internet connection at all, I have to believe
that they work the same way: they trust the host operating system to provide
them with the correct system clock. I'm sorry John, but I'm afraid you're
pointing fingers in the wrong direction, and if you're expecting Microsoft
to "fix" SQL Server so that it will disobey the local system clock, I don't
think you're going to get very far. But hey, if you think you can make a
coherent enough case for it, you are of course more than welcome to file a
suggestion at connect.microsoft.com/sql ...

.



Relevant Pages

  • Re: Simulating the passage of time
    ... > You say this isn't your production server, but you'll want to make sure ... >> clock to be a certain date, put in some data, move the system clock ... then since our database ...
    (microsoft.public.sqlserver.programming)
  • Re: Are Jet 4.0 Stored queries faster than sql w/ criteria specified as the record source of a form?
    ... centrally rather than the user's local time according to regional ... situations where the local machine has had the clock turned back. ... I do that all the time with server databases. ... Sounds like the database constraint couldn't be made to work because ...
    (microsoft.public.access.queries)
  • Simulating the passage of time
    ... We have to test our database against data that changes once a month (i.e. ... interest payments, etc.). ... clock to be a certain date, put in some data, move the system clock forward, ... then since our database server ...
    (microsoft.public.sqlserver.programming)
  • Re: NTP Configuration for DST?
    ... architecture of NTP. ... OpenVMS systems usually have the system clock set to local ... time and NTPD needs to know the local time to set the system clock ... timezone tables and local DST rules) before the system clock is updated. ...
    (comp.protocols.time.ntp)
  • Re: utc date set back to cdt by ntpd
    ... > with the trimble driver setting the system clock and using that 1pps time ... correctly on your local server. ... another factor is that you shouldn't set your stratum within the NTP ... > UTC and the system clock advances by the 5 hours as it should. ...
    (linux.redhat.misc)

Loading