Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Update SQL Server 2008 Database Compatibility level

Posted on 2011-03-23
2
Medium Priority
?
700 Views
Last Modified: 2012-05-11
Hello

I have several databases in a SQL Server 2008 environment that are still set at 90, and should be 100 (they are all Microsoft apps so no worries about application support).

Can I just change this in SQL Server Management Studio?  Or should I do this by TSQL - first place the DB in single user, then update compatibility, then set it back to Multi-user?

thanks

0
Comment
Question by:markymark10
2 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 1400 total points
ID: 35200441
No need to change to single user.  YOu can set it through TSQL or in the UI.  No harm to be done either way (unless you're using features that have been removed).
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 35200460
for tsql:
ALTER DATABASE database_name SET COMPATIBILITY_LEVEL =90  

Open in new window


for older database systems:
EXEC sp_dbcmptlevel database_name, compatibility_level value;

Open in new window


0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question