ListCompatibilityLevels Method

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The ListCompatibilityLevels method lists all available database compatibility levels.

語法

object
.ListCompatibilityLevels( )
as
NameList

Parts

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

Prototype (C/C++)

HRESULT ListCompatibilityLevels(LPSQLDMONAMELIST *ppNames);

備註

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.

ms131534.note(zh-tw,SQL.90).gif附註:
ListCompatibilityLevels can be used with SQL Server 7.0 and Microsoft SQL Server 2000 or later.

Applies To:

SQLServer2 Object