sql server - DateTimeOffset.Now in T-SQL -


I am executing INSERT for a SQL 2008 db. I now include T-SQL in the DATETIMEOFFSET column.

This will give you local time server where SQL is installed.

Do you also want to store timezones etc.? If so, then () may be better


Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

objective c - Mouse events for an NSSegmentedCell subclass? -