I've got a problem with my SQL Server 2005 configuration and I'm hoping that someone here (Mike?) can help me.
Our production box started live on (I think) a quad core machine. For some reason our ops guys set the processor affinity. I have NO idea why they did it - but that's not the issue now. After the machine was setup - it was virtualized - and migrated to one of our virtual machines - everything is working ok.
Now the problem is I need to enable the CLR integration becasue I need to do some queries that require regular expressions. When I try and execute the following command
sp_configure 'clr enabled', 1
RECONFIGURE WITH OVERRIDE
I get this message:
The affinity mask specified does not match the CPU mask on this system.
Ok, so now I'm stuck. So I poke around in the Master db and take a peek at sp_configure. Turns out it's querying the sys.configurations view. Ok, so I do a select and see the affinity mask has a value of 14. Ok. Further looking at the sp_config reveals this line:
EXEC %%ServerConfiguration( ConfigID = @confignum ).SetValue( Value = @configvalue )
Ok, I'm thinking - just change the confignum and configvalue to what I need it to be and it should work right? No dice when I try to run that from the Query window I get a message:
Incorrect syntax near '%'. The command I'm trying to run is:
DECLARE @confignum SMALLINT
DECLARE @configvalue INT
SET @confignum = 1535
SET @configvalue = 0
EXEC %%ServerConfiguration( ConfigID = @confignum ).SetValue( Value = @configvalue )
So is it possible to run that Exec? Or is there something I'm missing? I REALLY don't want to reinstall SQL server with ALL that headache - If I can just get that value changed to 0 (which from what I understand means no set affinity) then I think I'd be golden. Any ideas?
Thanks.
Our production box started live on (I think) a quad core machine. For some reason our ops guys set the processor affinity. I have NO idea why they did it - but that's not the issue now. After the machine was setup - it was virtualized - and migrated to one of our virtual machines - everything is working ok.
Now the problem is I need to enable the CLR integration becasue I need to do some queries that require regular expressions. When I try and execute the following command
sp_configure 'clr enabled', 1
RECONFIGURE WITH OVERRIDE
I get this message:
The affinity mask specified does not match the CPU mask on this system.
Ok, so now I'm stuck. So I poke around in the Master db and take a peek at sp_configure. Turns out it's querying the sys.configurations view. Ok, so I do a select and see the affinity mask has a value of 14. Ok. Further looking at the sp_config reveals this line:
EXEC %%ServerConfiguration( ConfigID = @confignum ).SetValue( Value = @configvalue )
Ok, I'm thinking - just change the confignum and configvalue to what I need it to be and it should work right? No dice when I try to run that from the Query window I get a message:
Incorrect syntax near '%'. The command I'm trying to run is:
DECLARE @confignum SMALLINT
DECLARE @configvalue INT
SET @confignum = 1535
SET @configvalue = 0
EXEC %%ServerConfiguration( ConfigID = @confignum ).SetValue( Value = @configvalue )
So is it possible to run that Exec? Or is there something I'm missing? I REALLY don't want to reinstall SQL server with ALL that headache - If I can just get that value changed to 0 (which from what I understand means no set affinity) then I think I'd be golden. Any ideas?
Thanks.