server time

  • Hi Frndz,

    How to get the server time?

    Thanks,
    Charmer

  • SELECT GETDATE()

  • assume if im a client side..and im connectiong to server....i want to know the server date and time..? is it possible?

    Thanks,
    Charmer

  • prakash 67108 (9/26/2011)


    assume if im a client side..and im connectiong to server....i want to know the server date and time..? is it possible?

    Do you ACTUALLY try what I write?

    getdate returns the server's date & time.

  • if you are interested in Nano seconds.

    then use;

    select SYSDATETIME()

  • SQL Server queries the Windows host date/time. This is used for all it's internal time marking of events (trace, events, etc.) and it is returned by getdate() or SYSDATETIME()

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply