ListCompatibilityLevels Method

SQL-DMO

SQL-DMO

ListCompatibilityLevels Method

The ListCompatibilityLevels method lists all available database compatibility levels.

Applies To
SQLServer2 Object
Syntax

object.ListCompatibilityLevels( ) as NameList

Parts

object

Expression that evaluates to an object in the Applies To list

Prototype (C/C++)

HRESULT ListCompatibilityLevels(LPSQLDMONAMELIST *ppNames);

Remarks

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.