Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Database Compatibility Level

$
0
0

What is difference between:

1. Changing database compatibility directly (without putting DB in single user mode)

ALTERDATABASE[WideWorldImporters]SETCOMPATIBILITY_LEVEL = 100

GO

2. Changing database compatibility putting DB in single user mode:

  • Set the database to single user access mode by using
    ALTER DATABASE SET SINGLE_USER
  • Change the compatibility level of the database.
    ALTER DATABASE [WideWorldImporters] SET COMPATIBILITY_LEVEL = 140
  • Put the database in multiuser access mode by using
    ALTER DATABASE SET MULTI_USER


Viewing all articles
Browse latest Browse all 4689

Trending Articles