Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Upgrading from SQL Server 2000


Upgrading from SQL Server 2000

Author
Message
Golfer22
Golfer22
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 96
I have a great deal of stored procedures and data integration that need to be optimized. All the SQL code was written for SQL Server 2000 and 2005. But now we just got off SQL Server 2000. What are some easy ways to optimize code (assuming they exist) now that SQL Server 2000 is out of the picture?
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)SSCrazy Eights (8.2K reputation)

Group: General Forum Members
Points: 8231 Visits: 14368
It is nice you can leverage some of the T-SQL improvements now that you have completely moved off 2000. However, while your perspective might be tilted towards "we just moved off 2000 to 2005" that does not affect the rules for optimizing SQL Server database code. Google "optimize sql server code" and you will find plenty of information on improvements that can be made, and things to look for in your codebase to make it better.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
TheSQLGuru
TheSQLGuru
SSCertifiable
SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)SSCertifiable (5.9K reputation)

Group: General Forum Members
Points: 5935 Visits: 8298
1) I hope you updated ALL statistics (index, column, etc) with a FULL SCAN immediately after upgrade. That is a MANDATORY step.

2) Most tuning will come exactly like it did in SQL 2000 - aggregate profiler runs.

3) It is MUCH easier to do wait stats and file IO stall analyses now, and both of those should be a primary tool to find where it hurts on a wider scale.

4) sp_whoisactive: get it, learn all of it's goodness. it is documented inside the code and Adam Machanic did a 30-day blog post series on sqlblog.com

5) LOTS of Dynamic Management Views to help you. There are some good books about using them for tuning. Performance Tuning with SQL Server Dynamic Management Views for example, and Troubleshooting SQL Server - A Guide for the Accidental DBA. There are numerous more advanced books too, as well as a bunch of free eBooks.

6) Consider getting a performance tuning professional on board to give your systems and applications a review. Probably lots of low-hanging fruit can be found and fixed plus you would gain the invaluable benefit of being mentored by a guru on how to do effective tuning analysis and refactoring.

Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search