Enable CLR in SQL 2008

by KodefuGuru 16. June 2009 12:58

I added an assembly and created clr functions on my SQL server only to receive the following error when I tried to excute them.

Msg 6263, Level 16, State 1, Line 1
Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option.

To enable clr functions to execute, run the following script:

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'clr enabled', 1;
GO
RECONFIGURE;
GO
After executing that script, calling clr functions work like a charm.

Tags: ,

Kodefu

Comments

6/16/2009 1:01:35 PM #

trackback

Trackback from DotNetKicks.com

Enable CLR in SQL 2008

DotNetKicks.com

6/16/2009 1:02:27 PM #

trackback

Trackback from DotNetShoutout

Enable CLR in SQL 2008

DotNetShoutout

7/13/2009 6:16:36 PM #

trackback

Trackback from KodefuGuru

WCF from CLR Functions

KodefuGuru

12/8/2009 5:58:34 AM #

lexus ny

wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post


Regards
Buing



lexus ny United States

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen

Whois KodefuGuru

Chris Eargle

Chris Eargle
.NET Community Champion

LinkedIn Twitter Technorati Facebook

MVP - Visual C#

 

INETA Community Champions
Friend of RedGate
Telerik .NET Ninja
Community blogs & blog posts

I am a #52er


World Map

RecentComments

Comment RSS

Tag cloud

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010