Hello,
A curiosity, why would SQL statements execute faster on SQL Server 2000 through the Enterprise Manager than when sent to the server via ADODB command in Access?
I am developing and testing the code on a stand-alone install of SQL Server 2005 Express, and the live version is on SQL Server 2000 (ver. 8.00.760 (SP3)). No idea if that's an enterprise edition or other, it's definitely not an Express version though.
I used to call Stored Procedures on the server, until I found out about the optimization whereby all SQL statements benefit from caching, at which point I decided to go back to dynamically building SQL statements and calling them directly through the connection (which I prefer).
I tested the performance of the system using both approaches on my SQL Server 2005 installation, and found them to be equal in terms of performance.
However, when I rolled it across to 2000, I've noticed that it seems to run significantly slower. I was surprised, as I knew the old stored procedures used to run just as quick on the server as on 2005. And the 2005 install is Express! With only one core and 1Gb RAM, it outperformed a full install on a dual-core machine with 3Gb RAM. :-?
I tried running a statement through ADODB, and it timed out after 20 minutes. I then tried running the exact same statement through the Enterprise manager, and it finished in just over 5 minutes.
According to BOL, the optimization was added from version 7 onwards, so SQL Server 2000 should be doing the same. Have I missed something?
Regards,
Rob.
A curiosity, why would SQL statements execute faster on SQL Server 2000 through the Enterprise Manager than when sent to the server via ADODB command in Access?
I am developing and testing the code on a stand-alone install of SQL Server 2005 Express, and the live version is on SQL Server 2000 (ver. 8.00.760 (SP3)). No idea if that's an enterprise edition or other, it's definitely not an Express version though.
I used to call Stored Procedures on the server, until I found out about the optimization whereby all SQL statements benefit from caching, at which point I decided to go back to dynamically building SQL statements and calling them directly through the connection (which I prefer).
I tested the performance of the system using both approaches on my SQL Server 2005 installation, and found them to be equal in terms of performance.
However, when I rolled it across to 2000, I've noticed that it seems to run significantly slower. I was surprised, as I knew the old stored procedures used to run just as quick on the server as on 2005. And the 2005 install is Express! With only one core and 1Gb RAM, it outperformed a full install on a dual-core machine with 3Gb RAM. :-?
I tried running a statement through ADODB, and it timed out after 20 minutes. I then tried running the exact same statement through the Enterprise manager, and it finished in just over 5 minutes.
According to BOL, the optimization was added from version 7 onwards, so SQL Server 2000 should be doing the same. Have I missed something?
Regards,
Rob.
Comment