The ListCompatibilityLevels method lists all available database compatibility levels.
object.ListCompatibilityLevels( ) as NameList
object
Expression that evaluates to an object in the Applies To list
HRESULT ListCompatibilityLevels(LPSQLDMONAMELIST *ppNames);
ListCompatibilityLevels returns a list of all available version compatibility levels in Microsoft® SQL Server™ 2000. An application can use one of the returned values to set the compatibility of a database using the CurrentCompatibility property.
Note ListCompatibilityLevels can be used with Microsoft® SQL Server™ 2000 and SQL Server 7.0.