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 |
Which sql server table is used to hold the stored procedure script?
in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration
What are the instances when triggers are appropriate?
you are provided with the single table having say 4 col ie fname lname age city , now the all records with displying of only fname and lname is required but in this format say my name is abhay khanna it will come like this abhay-khanna rahul-roy gaurav-singh the above format is required
What about UPDATESTATISTICS ?
Do comments need to go in a special place in sql server 2005?
Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases?
How self join is different from outer join?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?
Define indexes?
What is sql stored procedure?
How do I clean up sql server transaction log?