Answer Posted / mohammadali.info
SELECT GETDATE() AS CurrentDateTime
SELECT 'SYSDATETIME' AS FunctionName, SYSDATETIME() AS DateTimeFormat
UNION ALL
SELECT 'SYSDATETIMEOFFSET', SYSDATETIMEOFFSET()
UNION ALL
SELECT 'SYSUTCDATETIME', SYSUTCDATETIME()
UNION ALL
SELECT 'CURRENT_TIMESTAMP', CURRENT_TIMESTAMP
UNION ALL
SELECT 'GETDATE', GETDATE()
UNION ALL
SELECT 'GETUTCDATE', GETUTCDATE()
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the differences between sql server and mysql.
What is the importance of a recovery model?
Where do we use trace frag?
How to list all objects in a given schema?
Which sql server is best?
Do comments need to go in a special place in sql server 2005?
What is a mixed extent?
How do you create an execution plan?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
Can we use where clause with group by?
What are the types of joins in sql?
Can we take the full database backup in log shipping?
Define ACID properties in a Database?
What is the difference between grant and with grant while giving permissions to the user?
What is checkpoint in sql server?