how to get current timestamp in sql server code example Example: sql current timestamp SELECT CURRENT_TIMESTAMP;