Retrieve the session configuration or properties for a specified option.
SELECT SESSIONPROPERTY(‘ANSI_NULLS’); |
The SESSIONPROPERTY() function retrieves the session settings for a specified option in SQL Server.
SESSIONPROPERTY(option) |
Parameter |
Description |
option |
Mandatory. Specifies the session setting option to retrieve. Options include:
|
Works in: |
SQL Server (from 2008 onward), Azure SQL Database |