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++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -