June 23, 2010 at 9:45 pm
Hi,
Can anyone knows, how can I use my CLR script in sql startup services sql2008. whenever sql services restarted CLR diable. I am trying to use my clr script in startup services to Enable the CLR service whenever I restart sql services
If someone can help me point to right direcion
Thanks
Maji
June 25, 2010 at 8:22 am
How are you enabling CLR?
You can do it by t-sql:
EXEC sp_configure 'show advanced options' , '1';
go
reconfigure;
go
EXEC sp_configure 'clr enabled' , '1'
go
reconfigure;
go
-- just to turn off advanced options:
EXEC sp_configure 'show advanced options' , '0';
go
reconfigure;
go
Or you can do it via configuration tool:
Start/All programs/SQL Srver 2005/Configuration Tools/SQL Surface Area Configuration
Go to Surface Area Configuration for Features link at the bottom of screen. Click "CLR Integration" in the treeview and you will see check box to tick!
June 25, 2010 at 11:36 am
Thanks,
I have done all this some how when we restart SQL server services or agent services, CLR need to be enable again it just disable automatically. so i am trying to automate this in startup configuration, when services restart it run that clr enabling T-sql query, I don't know how i can do that?
June 25, 2010 at 12:38 pm
Do you have "lightweight pooling" turned off? Make sure it is off.
What sql2008 edition you have?
It is unusuall behavior. The server configuration should not revert back on restart of the service.
When you're enabling CLR, does it work before the service restart?
June 29, 2010 at 8:59 am
Thanx SSC for Reply
I am using SQL2008 sp1
yes CLR is enable before restart
I checked on "lightweight pooling" is off
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply