We are running SQL Server 2005 and Windows 2003 Server. I ran a query in SQL on a PC with one dual code processor and 4GB and it took six hours. However, we ran the same query in SQL on a brand-new server that has 4 quad core processors and 32GB of RAM, and it took 12 hours. Why would this be?
Software/Hardware used:
ASKED:
July 16, 2008 8:21 PM
UPDATED:
May 28, 2009 7:54 PM
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.
Did you check to make sure that SQL Server is using more than one cpu?
Is it really multithreading? Because we discovered the same thing. Faster on our dual core single socket cpu than the two socket quad core server with 8 GB RAM.
Turned out there is some sort of inane design bug in SQL Server where you have to have multiple .mdf files for there to be multiple threads. Do an Internet search on this. It is mind-boggling that this would be the case, but apparently it is. If your DB has only one .mdf file, you will get one thread, no matter how many cpus you have or what you set you max parallelism setting to be.
Crazy, but that’s microsquish for you.