I\'m a MySQL guy working on a SQL Server project, trying to get a datetime field to show the current time. In MySQL I\'d use NOW() but it isn\'t accepting that.
<
SYSDATETIME() and SYSUTCDATETIME()
are the DateTime2 equivalents of
GetDate() and GetUTCDate()
which return a DateTime.
DateTime2 is now the preferred method for storing the date and time in SQL Server 2008+. See the following StackOverflow Post.