I’ve been developing using Sharepoint 2007 on a VM, and recently tested some functionality by trying to change the system date.
Ever since then SQL server has been using 50% CPU and a lot of memory.
I’ve limited it’s memory, but have no idea how to fix the problem.
More details: The process using 50% cpu (1 core out of 2 for the vm) is sqlserver.exe
The problem was with Sharepoint itself.
By disabling the Search Service (which I don’t need to run on my VM) the CPU usage of SQL Server went back to normal after a restart.
To disable this, go in to Sharepoint 3.0 Central Admin > Operations > Services on Server
Stop Office SharePoint Server Search.