Home > Archive > microsoft.public.sqlserver.server > August 2002 > _current time on sql server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author _current time on sql server
hsr

2002-08-14, 7:23 am

Hi All,
how do I get the current time of the sql server, instead of the local PC.
(Just to keep the time syncronized for a call logging system)

The records include the time the call was logged. Should I retrieve the time
and then save the time in the table or can i use it with the insert
statement of the call that is being logged.

Thanks
Henk


Keith Kratochvil

2002-08-14, 7:23 am

Do you also want the date, or just the time?

select getdate()
select convert(char(8), getdate(),108)

--
Keith, SQL Server MVP


"hsr" <henkr@vippayroll.co.za> wrote in message
news:#$5JSC5QCHA.3216@tkmsftngp12...
> Hi All,
> how do I get the current time of the sql server, instead of the local PC.
> (Just to keep the time syncronized for a call logging system)
>
> The records include the time the call was logged. Should I retrieve the

time
> and then save the time in the table or can i use it with the insert
> statement of the call that is being logged.
>
> Thanks
> Henk
>
>



Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net