Other SYSDATETIME SQL function


1. Usage of SYSDATETIME

SQL Server Query 1

            
 SELECT SYSDATETIME() AS SystemDateTime  

Create SQL query with SqlQueryBuilder 1

            
 var (sql1, parameters1) = new SqlQueryBuilder()  
.Select()
.Column(new SYSDATETIME(), "SystemDateTime")
.Build();

Query build by SqlQueryBuilder 1

            
SELECT SYSDATETIME() AS SystemDateTime;


            
        

Parameters (If used)

Name Value

Query Results 1:

  SystemDateTime
1 7/19/2025 9:04:27 PM