ASP.NET CLR not enabled

I get the following error on my new installation of ASP.Net and SQL Server when starting my application:

Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option 

I tried to fix this by doing this:

  use dasolPSDev; sp_configure 'clr enabled', 1 go RECONFIGURE go sp_configure 'clr enabled' go 

But then I get:

  Msg 102, Level 15, State 1, Line 3 Incorrect syntax near 'sp_config 
+67
sql-server clr
May 26 '11 at 22:07
source share
5 answers

try it

 use dasolPSDev; EXEC sp_configure 'clr enabled', 1 go RECONFIGURE go EXEC sp_configure 'clr enabled' go 
+112
May 26 '11 at 22:17
source share
— -

A simplified version of the Jams solution that worked for me (SQL Server 2012):

 sp_configure 'clr enabled', 1 GO RECONFIGURE GO 

Source: http://msdn.microsoft.com/en-us/library/ms254506%28v=vs.80%29.aspx

+21
Nov 11 '14 at 16:43
source share

I tried sp_configure @configname = clr_enabled, @configvalue = 1

and then restarted the sql server. he worked

0
Nov 24 '16 at 11:54 on
source share

I had a similar problem, but this works for me (SQL Server 2008 R2):

 sp_configure 'clr enabled', 1 GO RECONFIGURE GO 
0
Nov 09 '18 at 16:22
source share

EXEC sp_configure 'clr enabled', 1 go RECONFIGURE go

0
Jan 17 '19 at 7:55
source share



All Articles