Link to home
Start Free TrialLog in
Avatar of enrique_aeo
enrique_aeo

asked on

ALTER DATABASE Sales SET COMPATIBILITY_LEVEL = 100;

Hi experts

I could describe any scenario where you use this code:
ALTER DATABASE Sales SET COMPATIBILITY_LEVEL = 100;
Avatar of PadawanDBA
PadawanDBA

what exactly are you asking?
Avatar of enrique_aeo

ASKER

when I use this command? what is it good for? can share some real scenario?
SET COMPATIBILITY_LEVEL
Hi,
It is to downgrade the compatibility level of current Sql database to

SQL Server 2008 and SQL Server 2008 R2
SOLUTION
Avatar of Vitor Montalvão
Vitor Montalvão
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
can a T-SQL statement does not work if I do change compatibility
please
an example: SQL 2014 introduced changes to the cardinality estimator
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Agreed.
Do you have any example where T-sql where some have stopped working to change the compatibility level?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial