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 is index in an assignment?
What is the basic difference between clustered and a non-clustered index?
what is database replicaion? : Sql server database administration
What the class forname () does?
What are explicit and implicit transactions?
What is the difference between an index and a unique index?
if 3 duplicate records in a table,i want to delete 2 duplicate records by keeping 1 as it is,how?
How can I get data from a database on another server?
How to test a dml trigger in ms sql server?
Will the writetext statement activate a trigger?
How many categories of data types used by sql server?
what is trigger . hw will it use them
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)