Get Current System Date Time
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the differences between “row_number()”, “rank()” and “dense_rank()”?
Why de-normalization required?
Describe in brief databases and sql server databases architecture.
What are the disadvantages of using the stored procedures?
Do you know how to implement service broker?
What is use of attributehierarchyenabled? : sql server analysis services, ssas
What is microsoft sql server?
difference between Clustered index and non clustered index ?
What are commit and rollback in sql?
Difference between DELETE and TRUNCATE?
What is a database in ms sql server?
What is the meaning of sql server?