join the MSSQLTips community

MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

 
Upgrading databases and changing database compatibility levels - MSSQLTips

MSSQLTips

MSSQLTips.com - your daily source for SQL Server tips
Welcome to MSSQLTips Sign in | Join | Help
in Search

Upgrading databases and changing database compatibility levels

Last post 02-19-2008 1:05 AM by Malc. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-18-2008 12:30 AM

    Upgrading databases and changing database compatibility levels

    This post is related to this tip: Upgrading databases and changing database compatibility levels

    http://www.mssqltips.com/tip.asp?tip=1436

  • 02-18-2008 12:13 PM In reply to

    • Malc
    • Top 500 Contributor
    • Joined on 02-18-2008
    • Posts 2

    Re: Upgrading databases and changing database compatibility levels

    There are also issues with upping the compatibility level from a previous SQL version to version 90 - you need to also check that your code still works with the stricter rules under SQL 2005.  For an explanation take a look at this:

     http://www.innovartis.co.uk/topical/migratingto2005.aspx

     

  • 02-18-2008 5:22 PM In reply to

    • grobido
    • Top 10 Contributor
    • Joined on 10-11-2007
    • Wilton, NH
    • Posts 103

    Re: Upgrading databases and changing database compatibility levels

    This is true there may be issues with upping the compatiblity level, but these items should be reviewed and corrected.  I have seen many implementations of SQL Server 2005 where databases were migrated, but the compatiblity levels were never changed.  I guess if someone is not using the newer features they wouldn't notice, but at some point they would probably run into a need where they would have to up the compatiblity level.

    Filed under:
  • 02-19-2008 1:05 AM In reply to

    • Malc
    • Top 500 Contributor
    • Joined on 02-18-2008
    • Posts 2

    Re: Upgrading databases and changing database compatibility levels

    Actually you the problems would specifically concern the T-SQL that worked perfectly fine under 2000 but does not work when the compat is changed to 90 i.e. after upping the level the database could be broken in some way.  It's finding the issues amongst all the stored procedures, functions etc. that is the arduous part unless you have a 100% coverage automated regression test pack.  That's why we recommend rebuilding your database to see what doesn't compile at level 90...

Page 1 of 1 (4 items)