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


SQL Server Compatibility mode


SQL Server Compatibility mode

Author
Message
beppe_30
beppe_30
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 76
Hi all,

During the day I made the migration of databases of SQL 2000 to SQL 2008.
But now I would have questions to ask.

1) The level of compatibility I have to set to 100?

2) If compatibility is set to 80 what happens?

King regards.
Patrick Purviance
Patrick Purviance
SSC Journeyman
SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)SSC Journeyman (84 reputation)

Group: General Forum Members
Points: 84 Visits: 383
Hey beppe_30,

This may not fully answer your question, but as a general rule, running any database in compatibility mode is simply saying that, although you have a higher version of SQL Server installed on the server, the database will only have the features and options available to the compatibility level you've chosen for it. To my knowledge (and experience) there's never a performance penalty or gain for running in compatibility mode. You just lose features.

This is particularly helpful when consolidating databases/servers and/or you need to run a 2000 or 2005 only supported database on a SQL Server 2008 platform, for example. Now, upgrading your databases to 2008 will obviously get you the latest/greatest features, so you'd always prefer to run in native mode (the level of the SQL Server binaries installed) to get the best bang for your buck.

So to answer your original question ;-), setting your compatibility level to 80 would just be like running your database on a SQL Server 2000 platform (albeit with better tools :coolSmile.

HtH,

-Patrick

Patrick Purviance, MCDBA
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8784 Visits: 16558
An issue I noticed was, if for instance you were to go to compatibility 90 from 80 you would gain the ability for TRY..CATCH against your database but would lose the ability to execute queries using older SQL ANSI joins.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
ALZDBA
ALZDBA
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6976 Visits: 8839
some DMV will not work in you are connected to a down-level db.

e.g.
use TheSQL2000db
select *from sys.dm_db_index_physical_stats(db_id(), object_id(NULL), null, null, null)


will not work on a level 80 (sql2000) db if you are connected to that db!

but
use master
select *from sys.dm_db_index_physical_stats(db_id('TheSQL2000db'), object_id(NULL), null, null, null)


will work.

Johan


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


"press F1 for solution", "press shift+F1 for urgent solution" :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21075 Visits: 18259
As the others have said, you may not be able to use some of the DMVs. I also have just migrated a lot of 2000 databases to 2008 and have left many of them in 80 compatibility mode. The applications continue to function as they did prior to the migration and I gain some of the benefits of SQL 2008 (like compression).



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

beppe_30
beppe_30
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 76
Thanks to all for the answers.
SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21075 Visits: 18259
You're welcome.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

David BAFFALEUF
David BAFFALEUF
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

Group: General Forum Members
Points: 65 Visits: 712
...and the SSMS reports won't work either if the database is still in 80 mode.

David B.

David B.
MothInTheMachine
MothInTheMachine
SSC-Enthusiastic
SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)SSC-Enthusiastic (149 reputation)

Group: General Forum Members
Points: 149 Visits: 307
I have 31Gb database that I have just set compatibility mode from 2008 to 2000 by first etting to single user mode then running:

ALTER DATABASE dbname SET COMPATIBILITY_LEVEL = 80

and it has been running for 10 minutes. Is this an action that usually takes a significant time period to complete? The server is a virtual server (a test server) and was low on memory. During execution I deleted some files to free up space. The command is still executing.

is this normal? Would it be faster if i had used the EXEC sp_dbcmptlevel dbname,80?

TIA

Love them all ... regardless.
- Buddha
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8784 Visits: 16558
You most likely have an open connection or query window to the database!

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
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