Function |
Description |
@@DATEFIRST |
Returns the current value, for a session, of SET DATEFIRST, which specifies the first day of the week.
Syntax:
@@DATEFIRST
|
@@DBTS |
Returns the value of the current timestamp data type for the current database. This timestamp is guaranteed to be unique in the database. A new timestamp value is generated when a row with a timestamp column is inserted or updated.
Syntax:
@@DBTS
|
@@LANGID |
Returns the local language identifier (ID) of the language that is currently being used.
Syntax:
@@LANGID
|
@@LANGUAGE |
Returns the name of the language currently being used.
Syntax:
@@LANGUAGE
|
@@LOCK_TIMEOUT |
Returns the current lock time-out setting in milliseconds for the current session. SET LOCK_TIMEOUT allows an application to set the maximum time that a statement waits on a blocked resource. When a statement has waited longer than the
LOCK_TIMEOUT setting, the blocked statement is automatically canceled, and an error message is returned to the application.
Syntax:
@@LOCK_TIMEOUT
|
@@MAX_CONNECTIONS |
Returns the maximum number of simultaneous user connections allowed on an instance of SQL Server. The number returned is not necessarily the number currently configured. The actual number of user
connections allowed also depends on the version of SQL Server that is installed and the limitations of the applications and hardware. To reconfigure SQL Server for fewer connections, use sp_configure.
Syntax:
@@MAX_CONNECTIONS
|
@@MAX_PRECISION |
Returns the precision level used by decimal and numeric data types as currently set in the server. By default, the maximum precision returns 38.
Syntax:
@@MAX_PRECISION
|
@@NESTLEVEL |
Returns the nesting level of the current stored procedure execution (initially 0) on the local server.
Each time a stored procedure calls another stored procedure or executes managed code by referencing a common language runtime (CLR) routine, type or
aggregate, the nesting level is incremented. When the maximum of 32 is executed, the transaction is terminated.
Syntax:
@@NESTLEVEL
|