cdu*_*dub 76 sql-server asp.net clr
当我运行我的应用程序时,我在新安装的ASP.Net和SQL Server上收到以下错误:
Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option
Run Code Online (Sandbox Code Playgroud)
我试图通过运行它来修复它:
use dasolPSDev;
sp_configure 'clr enabled', 1
go
RECONFIGURE
go
sp_configure 'clr enabled'
go
Run Code Online (Sandbox Code Playgroud)
但后来我得到:
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near 'sp_config
Run Code Online (Sandbox Code Playgroud)
jam*_*ams 119
试试这个
use dasolPSDev;
EXEC sp_configure 'clr enabled', 1
go
RECONFIGURE
go
EXEC sp_configure 'clr enabled'
go
Run Code Online (Sandbox Code Playgroud)
Jon*_*der 26
简化版本的jams解决方案对我有用(SQL Server 2012):
sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO
Run Code Online (Sandbox Code Playgroud)
来源:http://msdn.microsoft.com/en-us/library/ms254506%28v=vs.80%29.aspx
| 归档时间: |
|
| 查看次数: |
64265 次 |
| 最近记录: |