Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

CLR and 64-bit XP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fyrall - 02 Jul 2008 14:52 GMT
Hi!

I'm having a problem enabling CLR for the .net framework 2 on 64-bit XP, can
anyone please help?

I am deploying SQL 2005 Express SP2 bootstrapped to my application, as part
of setup I create a database by running TSQL scripts against the server. In
one such script I use the following code to enable CLR:

EXEC SP_CONFIGURE 'show advanced options' , '1';
RECONFIGURE;
EXEC SP_CONFIGURE 'clr enabled' , '1'
RECONFIGURE;

Then the script goes on to load a CLR assembly.

This works great on 32 bit XP and Vista but not 64 bit where I have to
restart the SQL server manaully before the CLR will be enabled. The SQL log
reports that the option has changed and if you look at the sys.configurations
table and the surface area configuration tool you can see that its changed.
However trying to load the assembly causes error 5847: Execution of .Net
framework code is disabled.

Have also tried RECONFIGURE WITH OVERRIDE but doesn't work either.

Any ideas?
Thanks alot!
F
TheSQLGuru - 02 Jul 2008 16:15 GMT
Well, if 64 bit sql express requires a reboot to actually enable CLR, can't
you add that as a step in the install/configure process?  Seems like a
simple, obvious solution! :-)

Signature

Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net

> Hi!
>
[quoted text clipped - 30 lines]
> Thanks alot!
> F
Fyrall - 02 Jul 2008 16:23 GMT
Hiya, thanks for the post.

Thats what I'm doing at the moment as can't seem to find another way around
it.
The RECONFIGURE option is documented though and was hoping someone might
know why it isn't working. Can't find any evidence of this being a known
issue either.

Have fun!
F

> Well, if 64 bit sql express requires a reboot to actually enable CLR, can't
> you add that as a step in the install/configure process?  Seems like a
[quoted text clipped - 34 lines]
> > Thanks alot!
> > F
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.