According to BOL (SQL Server Books Online) on sp_dbcmptlevel
,
This feature will be removed in a future version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use ALTER DATABASE Compatibility Level instead.
Now, the only TSQL way I know of checking database compatibility is through sp_dbcmptlevel
.
As far as I know, ALTER DATABASE Compatibility Level
is just for setting the compatibility level, not getting info.
How should one to get compatibility level without using GUI?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…