다음을 통해 공유


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.

[!참고] 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