次の方法で共有


RecalcSpaceUsage Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The RecalcSpaceUsage method forces the update of data reporting the disk resource usage of the referenced Microsoft SQL Server database or database object.

構文

object
.RecalcSpaceUsage(
)

Parts

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

Prototype (C/C++)

HRESULT RecalcSpaceUsage();

解説

Data reporting table and index size is maintained in values enumerating the number of pages allocated to store an index or table, the number of pages actually storing data, and the number of pages reserved for future storage.

Use the RecalcSpaceUsage method of the Database object to update usage data for all tables and indexes defined within a database. Use the RecalcSpaceUsage method of the Table or Index object to update data for the table or index referenced.

ms140740.note(ja-jp,SQL.90).gifメモ :
For a large index, table or database, the RecalcSpaceUsage method can take some time to complete. It is suggested that you inform the user by using a warning message or busy pointer.

Applies To:

Database Object

Table Object

Index Object