Introduction

This article explains how to get server-wide configuration option values in the system.

In total, there are 64 configurations in SQL Server. See the screenshots below.

The following is the description of the columns used in the configuration:

Syntax

SELECT * FROM sys.configurations

Output

SQL1.jpg

SQL2.jpg

Configuring CLR integration

Now we are going to configure the CLR, by enabling it.

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'clr enabled', 1;
GO
RECONFIGURE;
GO

Disabling

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'clr enabled', 0;
GO
RECONFIGURE;
GO

Query

SELECT * FROM sys.configurations WHERE name = 'clr enabled'

Output

SQL3.jpg

Thanks for reading this article.