Freitag, 12. Februar 2010

CLR in SQL Server 2008 aktivieren

Wenn man in den SQL Server 2008 eine eigene Assembly integrieren will, muss man diese als erstes mal erlauben - sonst bekommt man die Fehlermeldung

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

Dies kann man schnell mit einem Statement beheben:

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'clr enabled', 1;
GO
RECONFIGURE;
GO

Keine Kommentare: