I'm using the following command to try and enable the CLR on a SQL Server 2008 instance
EXEC sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO
But I still get the following error
Execution of .NET Framework code is disabled. Set "clr enabled" configuration option and restart the server
Do I need to do anything else?
To review what has been checked and attempted so far:
EXEC sp_configure 'clr enabled', 1;
has been executed.
RECONFIGURE;
has been executed.
The server has been restarted. This should only be necessary on WOW64 servers.
Running EXEC sp_configure 'clr enabled';
shows a 1
for run_value
.
Running EXEC sp_configure 'lightweight pooling';
shows a 0
for run_value
.
state
property in sys.dm_clr_properties has a value of "Locked CLR version with mscoree", meaning:
The Locked CLR version with mscoree state may be seen where the hosted CLR is not being used and, thus, it has not yet been initialized. The hosted CLR is initialized the first time a DDL statement (such as CREATE ASSEMBLY (Transact-SQL)) or a managed database object is executed.
Additional things to try / check:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With