In this post explains how to use the CURRENT_TIMESTAMP function in SQL Server (Transact-SQL) with syntax and examples.
In SQL Server (Transact-SQL), the CURRENT_TIMESTAMP function returns the current date and time.
The syntax for the CURRENT_TIMESTAMP function in SQL Server (Transact-SQL) is:
CURRENT_TIMESTAMP
There are no parameters or arguments for the CURRENT_TIMESTAMP function.
The CURRENT_TIMESTAMP function can be used in the following versions of SQL Server (Transact-SQL):
Let's look at some SQL Server CURRENT_TIMESTAMP function examples and explore how to use the CURRENT_TIMESTAMP function in SQL Server (Transact-SQL).
For example:
SELECT CURRENT_TIMESTAMP;
Output: '2014-05-01 15:29:59.917'