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
Version60Microsoft SQL Server 6.0.
Version65Microsoft SQL Server .5.
Version70Microsoft SQL Server 7.0.
Version80Microsoft SQL Server 2000.
Version90Microsoft SQL Server 2005.
Version100Microsoft SQL Server 2008.

The CompatibilityLevel enumeration class is served by the CompatibilityLevel property.

Community Additions