How do I get current system time in SQL Server?
Use the GETDATE() function
SELECT GETDATE()
CURRENT_TIMESTAMP is ANSI compliant and equivalent to GETDATE()
Otherwise, you have a plethora of functions as mentioned in SQL Server 2008 BOL here (with link for SQL Server 2005 too).
I think marc_s might have missed 1 or 2 ;-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With