Home > SQL Server Tips > Microsoft SQL Server > SQL Server 2005 upgrade hurdles
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

MICROSOFT SQL SERVER

SQL Server 2005 upgrade hurdles


Serdar Yegulalp, Contributor
08.14.2006
Rating: -4.43- (out of 5)


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Few people planning to upgrade to SQL Server 2005 will start from absolute scratch. Most will migrate to 2005 either from another database product entirely or from an earlier version of SQL Server. In this article I'll look at issues that may arise specifically when upgrading an earlier version of SQL Server to 2005.

The first thing that needs to be touched on is whether the upgrade is going to be performed by taking an existing SQL Server installation and upgrading it or by installing SQL Server 2005 on a new machine and migrating databases to it. A clean install can avoid some issues that would go with upgrading an existing installation, and you can install it in parallel with an existing version; you don't have to take the existing SQL Server offline. But if you don't have the funds or the provisioning for a new server, then upgrading the existing installation may be your only choice.

In some ways Microsoft has done a good deal of the heavy lifting when it comes to figuring out what you're in for when upgrading. The Microsoft SQL Server Upgrade Advisor (last updated April 2006) examines installed instances of SQL Server 7.0 and 2000 to determine if blatant issues exist that need to be dealt with immediately. The utility is non-destructive and doesn't require you to take anything offline when you use it, so it can be run at any time.

During the installation itself, a component called the System Configuration Checker will scan your current SQL Server version to determine if there are any problems that would prevent the installation. Microsoft has documented parameters that may cause blocking issues, so you can pre-emptively check the system against any such problems if you want to (and it's probably a good idea).

When upgrading an existing installation, consider if the default settings in an earlier version of SQL Server will successfully convert to SQL Server 2005. Some of those modified defaults -- which may have been changed to solve specific issues now properly addressed in 2005 -- may have adverse side effects.

For instance, SQL Server 2005 will have memory buffer pool problems if the max server memory setting is not set to its default 2147483647 (i.e., all available memory). You can always fine-tune this value later if you need to. Another changed default, which can cause things to behave unexpectedly, is the query governor cost limit. SQL Server 2005 uses a different cost-modeling algorithm for queries. Set this to 0 before upgrading whenever possible.

As a side note, if the AUTO_UPDATE_STATISTICS option is turned off in any database to be migrated, re-enable it. Without it SQL Server 2005 can't generate optimal query plans.

On the other hand, before an upgrade you should disable the trace flags feature; some SQL Server 2000 trace flags simply do not exist in 2005. You should also disable duplicate security identifiers (SIDs), as they are unsupported in 2005.

Extended stored procedures that were previously registered without the full path for the DLL name may not work after you upgrade to SQL Server 2005. Run the sp_dropextendedproc and sp_addextendedproc stored procedures to drop and add back extended stored procedures if needed.

Another possible upgrade issue that is more related to databases in general than SQL Server itself deserves mention here: SQL Server 2005 uses slightly more data per column for some data types; text, ntext and image data types require 40 more bytes per column. For that reason, any migrated databases that use these data types should be allowed to grow automatically if they aren't already allowed to do so. The same goes for the tempdb database: Set it up to grow automatically during the course of the upgrade. Its own settings may be preserved during the upgrade, which is why it's worth looking into before starting.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!

Rate this Tip
To rate tips, you must be a member of SearchSQLServer.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
SQL Server upgrade and migration
SQL Server consolidation: Why it's an optimization technique
Should you upgrade to SQL Server 2005 or SQL Server 2008?
Monitor database mirroring and replication after a SQL Server upgrade
Upgrade live applications to SQL Server 2005 for high availability
SQL Server high availability when upgrading to SQL Server 2005
How to restore SQL Server database to transition server during upgrade
Top 10 SQL Server Integration Services (SSIS) and DTS tips
Upgrade Active/Active cluster to SQL Server 2005 and Windows 2003
FAQ: SQL Server databases how-to
Upgrading to SQL Server 2008 advantages and hardware requirements

SQL Server 2005 (Yukon)
Tips for tuning SQL Server 2005 to improve reporting performance
Using DATEADD and DATEDIFF to calculate SQL Server datetime values
SQL Server consolidation: Why it's an optimization technique
Parent-child dimensions in SQL Server 2005 with Analysis Services MDX
Using SQL Server datetime functions GETDATE, DATENAME and DATEPART
SSIS error message due to installation problem on SQL Server 2005
SQL Server data conversions from date/time values to character types
Basics for working with DATETIME and SMALLDATETIME in SQL Server 2005
How to configure Database Mail in SQL Server 2005 to send mail
How to use rank function in SQL Server 2005
SQL Server 2005 (Yukon) Research

SQL Server installation
SQL Server consolidation: Why it's an optimization technique
SSIS error message due to installation problem on SQL Server 2005
Get SQL Server log shipping functionality without Enterprise Edition
How to create a SQL Server linked server to DB2
Tuning SQL Server performance via disk arrays and disk partitioning
Virtual database storage for SQL Server: Friend or foe?
Tutorial: Migrating to SANs from local SQL Server disk storage
How to restore SQL Server database to transition server during upgrade
Storage area network (SAN) basics every SQL Server DBA must know
Tips for moving from SQL Server local disk storage to SANs
SQL Server installation Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
application server  (SearchSQLServer.com)
Yukon  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts