다음을 통해 공유


CurrentCompatibility Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The CurrentCompatibility property specifies the current database compatibility level.

구문

object
.
CurrentCompatibility [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    A string value retrieved using the ListCompatibilityLevels method

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT SetCurrentCompatibility(SQLDMO_LPCSTR NewValue);
HRESULT GetCurrentCompatibility(SQLDMO_LPBSTR pbstrName);

주의

When upgrading existing systems with existing applications, use database compatibility level settings to retain earlier behaviors if existing applications depend on those behaviors. Many applications, however, are not affected by such changes in behavior and work at the compatibility level of the current version of Microsoft SQL Server.

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

Applies To: