запуск пользовательского кода в net framework отключен включите параметр конфигурации clr enabled
Запуск пользовательского кода в net framework отключен включите параметр конфигурации clr enabled
Где и как этот параметр активировать?
для возможности работы с CLR, на сервере
выполнен скрипт.
| От: | vensub |
Дата: | 11.01.08 12:21 | |
Оценка: |
| От: | ssh717 |
Дата: | 11.01.08 16:47 | |
Оценка: |
но приложение на машине с установленной VS2005 все равно
работает нормально.
не зависимо от clr enabled = 1 или =0
| От: | _d_m_ |
Дата: | 14.01.08 00:28 | |
Оценка: |
Запусти «SQL Server Surface Area Configuration»
clr enabled как включить
ОБЛАСТЬ ПРИМЕНЕНИЯ: SQL Server
База данных SQL Azure (только управляемый экземпляр)
Azure Synapse Analytics (хранилище данных SQL)
Parallel Data Warehouse APPLIES TO:
SQL Server
Azure SQL Database (Managed Instance only)
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
Функция интеграции со средой CLR отключена по умолчанию, поэтому ее нужно включить, чтобы использовать объекты, использующие интеграцию со средой CLR. The common language runtime (CLR) integration feature is off by default, and must be enabled in order to use objects that are implemented using CLR integration. Чтобы включить интеграцию со средой CLR, используйте параметр clr enabled хранимой процедуры sp_configure в SQL Server Management Studio SQL Server Management Studio : To enable CLR integration, use the clr enabled option of the sp_configure stored procedure in SQL Server Management Studio SQL Server Management Studio :
Компьютеры, сконфигурированные для работы с большим объемом памяти и большим числом процессоров, при запуске сервера могут отказаться загружать функцию интеграции со средой CLR SQL Server. Computers configured with large amounts of memory and a large number of processors may fail to load the CLR integration feature of SQL Server when starting the server. Чтобы устранить эту неполадку, запустите сервер с помощью параметра запуска службы gmemory_to_reserve SQL Server SQL Server и укажите достаточно большое значение памяти. To address this issue, start the server by using the -gmemory_to_reserve SQL Server SQL Server service startup option, and specify a memory value large enough. Дополнительные сведения см. в разделе Параметры запуска службы Database Engine. For more information, see Database Engine Service Startup Options.
Выполнение в среде CLR не поддерживается при использовании упрощенных пулов. Common language runtime (CLR) execution is not supported under lightweight pooling. Перед включением интеграции со средой CLR необходимо отключить функцию использования упрощенных пулов. Before enabling CLR integration, you must disable lightweight pooling. Дополнительные сведения см. в разделе Параметр конфигурации сервера «использование упрощенных пулов». For more information, see lightweight pooling Server Configuration Option.
ОБЛАСТЬ ПРИМЕНЕНИЯ: SQL Server
База данных SQL Azure
Azure Synapse Analytics (хранилище данных SQL)
Parallel Data Warehouse APPLIES TO:
SQL Server
Azure SQL Database
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
Только в WOW64. WOW64 only. Перезагрузите серверы WOW64, чтобы изменения параметров вступили в силу. Restart WOW64 servers to effect the settings changes. Для других типов серверов перезагрузка не требуется. No restart required for other server types.
При выполнении инструкции RECONFIGURE и изменении значения параметра clr enabled с 1 на 0 все домены приложений, содержащие пользовательские сборки, немедленно выгружаются. When you run RECONFIGURE, and the run value of the clr enabled option is changed from 1 to 0, all application domains containing user assemblies are immediately unloaded.
Пример Example
В следующем примере сначала отображается текущая настройка параметра clr enabled, а затем параметр включается с заданием значения 1. The following example first displays the current setting of the clr enabled option and then enables the option by setting the option value to 1. Чтобы отключить этот параметр, задайте значение 0. To disable the option, set the value to 0.
SQL Server 2008 — What is an easy way to check if clr is enabled?
6 Answers 6
Check the config_value in the results of sp_configure
You can enable CLR by running the following:
The accepted answer needs a little clarification. The row will be there if CLR is enabled or disabled. Value will be 1 if enabled, or 0 if disabled.
I use this script to enable on a server, if the option is disabled:
Запуск пользовательского кода в net framework отключен
ОБЛАСТЬ ПРИМЕНЕНИЯ ЭТОЙ СТАТЬИ: SQL Server (начиная с 2008)
База данных SQL Azure
Хранилище данных SQL Azure
Parallel Data Warehouse
Используйте параметр «clr enabled», чтобы указать, может ли SQL Server выполнять пользовательские сборки. Параметр clr enabled принимает перечисленные ниже значения.
Значение | Описание |
---|---|
Выполнение сборок не разрешается в SQL Server. | |
1 | Выполнение сборок разрешается в SQL Server. |
Только в WOW64. Перезагрузите серверы WOW64, чтобы изменения параметров вступили в силу. Для других типов серверов перезагрузка не требуется.
При выполнении инструкции RECONFIGURE и изменении значения параметра clr enabled с 1 на 0 все домены приложений, содержащие пользовательские сборки, немедленно выгружаются.
Запуск среды CLR не поддерживается при использовании упрощенных пулов. Отключите один из двух параметров: «clr enabled» или «lightweight pooling». Функции, зависящие от среды CLR и неправильно работающие в режиме волокон, включают иерархический тип данных, репликацию и управление на основе политик.
В следующем примере сначала отображается текущая настройка параметра clr enabled, а затем параметр включается с заданием значения 1. Чтобы отключить этот параметр, задайте значение 0.
Я использую следующую команду, чтобы попытаться включить CLR в экземпляре SQL Server 2008
Но я все еще получаю следующую ошибку
Нужно ли что-нибудь делать?
Чтобы проверить, что было проверено и предпринято до сих пор:
state свойство в sys.dm_clr_properties имеет значение «Закрытая версия CLR с mscoree», что означает:
Закрытая версия CLR с состоянием mscoree может быть видна там, где размещенная среда CLR не используется и, таким образом, она еще не была инициализирована. Хост CLR инициализируется в первый раз, когда выполняется инструкция DDL (например, CREATE ASSEMBLY (Transact-SQL)) или управляемый объект базы данных.
Дополнительные вещи для проверки/проверки:
by Le Kevin · Published July 31, 2009 · Updated August 12, 2010
If you are working with SQL server CLR objects there’s a higher possibility that you might encounter the following error.
To overcome this, you have to reconfigure the SQL server to enable CLR objects. To do that, you can use the following commands…
exec sp_configure ‘clr_enable’,’1′
Note : – CLR objects only works with SQL server 2005 and later versions.
sp_configure ‘show advanced options’, 1;
GO
RECONFIGURE;
GO
sp_configure ‘clr enabled’, 1;
GO
RECONFIGURE;
GO
ALTER DATABASE TheraBreath SET TRUSTWORTHY ON
GO
exec sp_changedbowner [DomainUsername] or exec sp_changedbowner [sa]
clr enabled как включить
ОБЛАСТЬ ПРИМЕНЕНИЯ: SQL Server
База данных SQL Azure (только управляемый экземпляр)
Azure Synapse Analytics (хранилище данных SQL)
Parallel Data Warehouse APPLIES TO:
SQL Server
Azure SQL Database (Managed Instance only)
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
Функция интеграции со средой CLR отключена по умолчанию, поэтому ее нужно включить, чтобы использовать объекты, использующие интеграцию со средой CLR. The common language runtime (CLR) integration feature is off by default, and must be enabled in order to use objects that are implemented using CLR integration. Чтобы включить интеграцию со средой CLR, используйте параметр clr enabled хранимой процедуры sp_configure в SQL Server Management Studio SQL Server Management Studio : To enable CLR integration, use the clr enabled option of the sp_configure stored procedure in SQL Server Management Studio SQL Server Management Studio :
Компьютеры, сконфигурированные для работы с большим объемом памяти и большим числом процессоров, при запуске сервера могут отказаться загружать функцию интеграции со средой CLR SQL Server. Computers configured with large amounts of memory and a large number of processors may fail to load the CLR integration feature of SQL Server when starting the server. Чтобы устранить эту неполадку, запустите сервер с помощью параметра запуска службы gmemory_to_reserve SQL Server SQL Server и укажите достаточно большое значение памяти. To address this issue, start the server by using the -gmemory_to_reserve SQL Server SQL Server service startup option, and specify a memory value large enough. Дополнительные сведения см. в разделе Параметры запуска службы Database Engine. For more information, see Database Engine Service Startup Options.
Выполнение в среде CLR не поддерживается при использовании упрощенных пулов. Common language runtime (CLR) execution is not supported under lightweight pooling. Перед включением интеграции со средой CLR необходимо отключить функцию использования упрощенных пулов. Before enabling CLR integration, you must disable lightweight pooling. Дополнительные сведения см. в разделе Параметр конфигурации сервера «использование упрощенных пулов». For more information, see lightweight pooling Server Configuration Option.
ОБЛАСТЬ ПРИМЕНЕНИЯ: SQL Server
База данных SQL Azure
Azure Synapse Analytics (хранилище данных SQL)
Parallel Data Warehouse APPLIES TO:
SQL Server
Azure SQL Database
Azure Synapse Analytics (SQL DW)
Parallel Data Warehouse
Только в WOW64. WOW64 only. Перезагрузите серверы WOW64, чтобы изменения параметров вступили в силу. Restart WOW64 servers to effect the settings changes. Для других типов серверов перезагрузка не требуется. No restart required for other server types.
При выполнении инструкции RECONFIGURE и изменении значения параметра clr enabled с 1 на 0 все домены приложений, содержащие пользовательские сборки, немедленно выгружаются. When you run RECONFIGURE, and the run value of the clr enabled option is changed from 1 to 0, all application domains containing user assemblies are immediately unloaded.
Пример Example
В следующем примере сначала отображается текущая настройка параметра clr enabled, а затем параметр включается с заданием значения 1. The following example first displays the current setting of the clr enabled option and then enables the option by setting the option value to 1. Чтобы отключить этот параметр, задайте значение 0. To disable the option, set the value to 0.
SQL Server 2008 — What is an easy way to check if clr is enabled?
6 Answers 6
Check the config_value in the results of sp_configure
You can enable CLR by running the following:
The accepted answer needs a little clarification. The row will be there if CLR is enabled or disabled. Value will be 1 if enabled, or 0 if disabled.
I use this script to enable on a server, if the option is disabled:
The common language runtime (CLR) integration feature is off by default, and must be enabled in order to use objects that are implemented using CLR integration. To enable CLR integration, use the clr enabled option of the sp_configure stored procedure in SQL Server Management Studio:
You can disable CLR integration by setting the clr enabled option to 0. When you disable CLR integration, SQL Server stops executing all user-defined CLR routines and unloads all application domains. Features that rely upon the CLR, such as the hierarchyid data type, the FORMAT function, replication, and Policy-Based Management, are not affected by this setting and will continue to function.
To enable CLR integration, you must have ALTER SETTINGS server level permission, which is implicitly held by members of the sysadmin and serveradmin fixed server roles.
Computers configured with large amounts of memory and a large number of processors may fail to load the CLR integration feature of SQL Server when starting the server. To address this issue, start the server by using the -gmemory_to_reserveSQL Server service startup option, and specify a memory value large enough. For more information, see Database Engine Service Startup Options.
Common language runtime (CLR) execution is not supported under lightweight pooling. Before enabling CLR integration, you must disable lightweight pooling. For more information, see lightweight pooling Server Configuration Option.