What is the equivalent of MySQL’s Now() function in SQL Server ?

MySQL has the function Now() which is a Datetime type field which shows the current date as well as the time.

What is the equivalent of MySQL’s Now() function in SQL Server ?

In SQL Server , you can use the GetDate() function to achieve the same.

SELECT GETDATE() as CurrentDateTime
What is the equivalent of MySQL's Now() function in SQL Server ?

Leave Your Comment

Liked this content?. Please spread the word :)