Database2 Object

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

The Database2 object represents the properties of a single database in Microsoft SQL Server 2000 and later and extends the functionality of the Database object.

Properties

Collation Property

IsDeleted Property

CurrentCompatibility Property

SizeInKB Property

Methods

CheckAllocationsDataOnlyWithResult Method

CheckRuleSyntax Method

CheckAllocationsWithResult Method

CheckTablesDataOnlyWithResult Method

CheckCatalogWithResult Method

CheckTablesWithResult Method

CheckDefaultSyntax Method

IsObjectDeleted Method

備註

The Database2 object extends the functionality of the Database object for use with features that were introduced in SQL Server 2000. It also inherits the properties and methods of the Database object. With the Database2 object, you can:

  • Set and retrieve column-level collation settings.
  • Check SQL Server database integrity with results returned in tabular format.

The methods and properties of the Database2 object may not be compatible with instances of SQL Server version 7.0 or earlier. For more information about using the Database2 object in an application that also runs with an instance of SQL Server 7.0, refer to the Remarks section for specific methods and properties. For more information, see Programming Extended SQL-DMO Objects.

請參閱

參考

Database Object

說明及資訊

取得 SQL Server 2005 協助