We recommend using Visual Studio 2017

CompatibilityLevel Enumeration

The CompatibilityLevel enumeration is a list of constant values that specify the behavior that corresponds to a version of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)

public enum CompatibilityLevel

Member nameDescription
Version100Microsoft SQL Server 2008.
Version110Microsoft SQL Server 2012
Version60No longer used.
Version65No longer used.
Version70No longer used.
Version80No longer used.
Version90Microsoft SQL Server 2005.

The CompatibilityLevel enumeration class is served by the CompatibilityLevel property.

Community Additions