Technology · Reference dataset

SQL Server Advanced Functions

SQL Server conversion, null handling and session functions with a description, the documented syntax, the return type, a documented example with its result, and a link to the Microsoft documentation.

Download options
Look inside

Every record

All 12 records · Last changed November 15, 2026 · Select a column heading to sort. Select a row to read the whole record.

Preview of SQL Server Advanced Functions
Function Description Syntax Return type Example Result Doc url
CAST Converts a value (of any type) into a specified datatype CAST (expression AS data_type [ (length) ]) Returns expression, translated to data_type SELECT CAST (10.3496847 AS MONEY); 10.3497 https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql
COALESCE Returns the first non-null value in a list COALESCE (expression [, ...n ]) Returns the data type of expression with the highest data type precedence SELECT COALESCE(NULL, NULL, 'third_value', 'fourth_value'); third_value https://learn.microsoft.com/en-us/sql/t-sql/language-elements/coalesce-transact-sql
CONVERT Converts a value (of any type) into a specified datatype CONVERT (data_type [ (length) ], expression [, style ]) Returns expression, translated to data_type SELECT CONVERT (CHAR (8), 0x4E616d65, 0) AS [Style 0, binary to character]; Name https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql
CURRENT_USER Returns the name of the current user in the SQL Server database CURRENT_USER sysname SELECT CURRENT_USER; https://learn.microsoft.com/en-us/sql/t-sql/functions/current-user-transact-sql
IIF Returns a value if a condition is TRUE, or another value if a condition is FALSE IIF(boolean_expression, true_value, false_value) Returns the data type with the highest precedence from the types in true_value and false_value DECLARE @a INT = 45, @b INT = 40; SELECT [Result] = IIF( @a > @b, 'TRUE', 'FALSE' ); TRUE https://learn.microsoft.com/en-us/sql/t-sql/functions/logical-functions-iif-transact-sql
ISNULL Return a specified value if the expression is NULL, otherwise return the expression ISNULL (check_expression, replacement_value) Returns the same type as check_expression SELECT AVG(ISNULL(Weight, 50)) FROM Production.Product; 59.79 https://learn.microsoft.com/en-us/sql/t-sql/functions/isnull-transact-sql
ISNUMERIC Tests whether an expression is numeric ISNUMERIC (expression) int https://learn.microsoft.com/en-us/sql/t-sql/functions/isnumeric-transact-sql
NULLIF Returns NULL if two expressions are equal NULLIF (expression, expression) Returns the same type as the first expression SELECT NULLIF(4,4) AS Same, NULLIF(5,7) AS Different; NULL 5 https://learn.microsoft.com/en-us/sql/t-sql/language-elements/nullif-transact-sql
SESSION_USER Returns the name of the current user in the SQL Server database SESSION_USER nvarchar(128) DECLARE @session_usr NCHAR(30); SET @session_usr = SESSION_USER; SELECT 'This session''s current user is: '+ @session_usr; This session's current user is: Surya https://learn.microsoft.com/en-us/sql/t-sql/functions/session-user-transact-sql
SESSIONPROPERTY Returns the session settings for a specified option SESSIONPROPERTY (option) sql_variant SELECT SESSIONPROPERTY ('CONCAT_NULL_YIELDS_NULL') https://learn.microsoft.com/en-us/sql/t-sql/functions/sessionproperty-transact-sql
SYSTEM_USER Returns the login name for the current user SYSTEM_USER nvarchar(128) DECLARE @sys_usr CHAR(30); SET @sys_usr = SYSTEM_USER; SELECT 'The current system user is: '+ @sys_usr; The current system user is: WillisJo https://learn.microsoft.com/en-us/sql/t-sql/functions/system-user-transact-sql
USER_NAME Returns the database user name based on the specified id USER_NAME ([ ID ]) nvarchar(128) SELECT USER_NAME(); dbo https://learn.microsoft.com/en-us/sql/t-sql/functions/user-name-transact-sql

Open this data in a free tool: CSV to JSON · JSON formatter · SQL INSERT generator · CSV to XML

CSV / JSON / XML

Put this data to work.

All 12 records are available without a pass, within the free request limits.

  • CSV for spreadsheets and lookup tables
  • JSON for apps and data analysis
  • XML for imports and integrations
Choose your file

Lost your key?

Commercial use is allowed, free or paid.

Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.

Scope and sources

Last checked against sources: October 15, 2026.

Last changed: November 15, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.

SQL Server Advanced Functions has 12 records and 7 fields: Function, Description, Syntax, Return type, Example, Result, Doc url.

A complete download includes all 12 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.

Use this dataset through the API
GET https://mysafeinfo.com/api/data/sqlserveradvancedfunctions

Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.

More in Technology

Git Commands HTML Colors Microsoft Access Data Types MySQL Data Types Operating Systems Programming Languages

Download a category with your pass