ListCompatibilityLevels Method
Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.
The ListCompatibilityLevels method lists all available database compatibility levels.
Sintassi
object.ListCompatibilityLevels( )asNameList
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT ListCompatibilityLevels(LPSQLDMONAMELIST *ppNames);
Osservazioni
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.
[!NOTA]
ListCompatibilityLevels can be used with SQL Server 7.0 and Microsoft SQL Server 2000 or later.