What is the difference between SQL Server databases A & B where:
A. Database restored from lower level compatibility(100) to higher compatibility (130)
B. New Database created in higher compatibility (130)
sql serversql-server-2008sql-server-2016
What is the difference between SQL Server databases A & B where:
A. Database restored from lower level compatibility(100) to higher compatibility (130)
B. New Database created in higher compatibility (130)
Best Answer
I'm not sure if this gets to the root of your question - if not, please update your question with more information.
According the the documentation for ALTER DATABASE (Transact-SQL) Compatibility Level, the compatibility mode of a database:
As I understand the documentation, two databases running under the same compatibility mode should operate the same way with regard to those specific behaviors.
Restored databases do not (necessarily) automatically change their compatibility mode.
From the documentation: