ListCompatibilityLevels Method

后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The ListCompatibilityLevels method lists all available database compatibility levels.

语法

object.ListCompatibilityLevels( )asNameList

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.

注意注意

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

Applies To: