CurrentCompatibility Property
The CurrentCompatibility property specifies the current database compatibility level.
Applies To
Database2 Object |
Syntax
object.CurrentCompatibility [= value]
object
Expression that evaluates to an object in the Applies To list
value
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);
Remarks
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 Microsoft® SQL Server™ 2000.
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.
Note CurrentCompatibility can be used withSQL Server 2000 and SQL Server version 7.0.