ListCompatibilityLevels Method

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

The ListCompatibilityLevels method lists all available database compatibility levels.

Syntaxe

object.ListCompatibilityLevels( )asNameList

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ListCompatibilityLevels(LPSQLDMONAMELIST *ppNames);

Notes

ListCompatibilityLevels returns a list of all available version compatibility levels in Microsoft SQL Server. An application can use one of the returned values to set the compatibility of a database using the CurrentCompatibility property.

[!REMARQUE]

ListCompatibilityLevels can be used with SQL Server 7.0 and Microsoft SQL Server 2000 or later.

Applies To: