DATABASEPROPERTYEX() in SQL Server
Last Updated :
28 Sep, 2020
DATABASEPROPERTYEX()
It is the function used to return the different information about the current setting of the specified database option or property.
Syntax :
DATABASEPROPERTYEX ( 'databasename', 'propertyname' )
Now, here you will see the property description as following.
- databasename :
It is the name of the database for which DATABASEPROPERTYEX will result in the property name information, databasename has an nvarchar(128) data type.
- propertyname :
It is an expression that defines the name of the database property to have resulted, propertyname has varchar(128) data type.
The following are a few property names that DATABASEPROPERTYEX() function provides info.
- Collation :
This property defines the default collation name for the database.
- ComparisonStyle :
This property defines the Windows comparison variety of the collation.
- Edition :
This property defines the database edition or service tier.
- IsAnsiNullDefault :
This property defines if the database follows ISO rules for permitting null values.
- IsAnsiNullsEnabled :
This property defines all comparisons to a null assessment to the unknown.
- IsAnsiPaddingEnabled :
This property defines strings are padded to the identical length before comparison or insert.
- IsAnsiWarningsEnabled :
This property defines SQL Server issues an error or warning messages once commonplace error conditions occur.
- IsArithmeticAbortEnabled :
This property defines queries to finish once an overflow or divide-by-zero error happens throughout query execution.
- IsAutoClose :
This property defines the database shuts down cleanly and frees resources when the last user exits.
- IsAutoCreateStatistics :
This property defines query optimizer creates single-column statistics, as needed, to boost query performance.
- IsAutoCreateStatisticsIncremental :
This property defines auto-created single-column statistics are incremental once possible.
- IsAutoShrink :
This property defines database files are candidates for automatic periodic shrinking.
- IsAutoUpdateStatistics :
This property defines when a query uses potentially out-of-date existing statistics, the query optimizer updates those statistics.
- IsClone :
This property defines a database might be a schema- and statistics only copy of a user database created with DBCC CLONE DATABASE.
- IsCloseCursorsOnCommitEnabled :
This property defines when a transaction commits, all open cursors will close.
- IsFulltextEnabled :
This property defines the database is enabled for full-text and linguistics indexing.
- IsInStandBy :
This property defines database is online as read-only, with restore log allowed.
- IsLocalCursorsDefault :
This property defines pointer declarations default to native.
- IsNullConcat :
This property defines null concatenation operand yields NULL.
- IsNumericRoundAbortEnabled :
This property defines errors are generated once a loss of precision happens in expressions.
- IsQuotedIdentifiersEnabled :
This property defines double quotation marks on identifiers are allowed.
- IsPublished :
This property defines if replication is there, SQL Server supports database table publication for replication.
- IsRecursiveTriggersEnabled :
This property defines the recursive firing of triggers is enabled.
- IsSubscribed :
This property defines the database is subscribed to a publication.
- IsSyncWithBackup :
This property defines the database is either a broadcast database or a distributed database, and it supports a restoration that is able to not disrupt transnational replication.
- IsTornPageDetectionEnabled :
This property defines the SQL Server Database Engine detects incomplete I/O operations caused by power failures or different system outages.
- IsXTPSupported :
This property indicates whether the database supports In-Memory OLTP.
Examples –
Here is the screenshot.
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...