clr enabled
Allow user CLR assemblies to run.
- Standard
0- Range
- 0 or 1
- Restart needed
- Nein
- Default checked on
- SQL Server 2025
Was es bewirkt
Since SQL Server 2017, clr strict security (on by default) treats every assembly as UNSAFE unless it is signed and trusted.
Standardwert
0. 0 (SQL Server 2025).
Check the current value
SELECT name, value, value_in_use, minimum, maximum, is_dynamic, is_advanced FROM sys.configurations WHERE name = 'clr enabled'; EXEC sp_configure 'clr enabled';
Change it
EXEC sp_configure 'clr enabled', 1; RECONFIGURE;
No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1).
When to change it
Only when you deploy CLR assemblies you have reviewed and signed.
What can go wrong
Widens the attack surface; unsigned assemblies need sys.sp_add_trusted_assembly.
Questions about clr enabled
What is the default value of clr enabled in SQL Server?
0. 0 (SQL Server 2025).
Does changing clr enabled require a restart?
No. No restart: it takes effect when RECONFIGURE runs (sys.configurations.is_dynamic = 1).
When should I change clr enabled?
Only when you deploy CLR assemblies you have reviewed and signed.
Back to all SQL Server settings, or check the SQL Server manual for every option.
Check clr enabled on your own server
SQLly runs the query above against SQL Server and the other engines in this reference, from one desktop app on macOS, Windows and Linux.