次の方法で共有


SpaceAvailableInMB Property

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

The SpaceAvailableInMB property returns the amount of disk resource allocated and unused in operating system files implementing Microsoft SQL Server database and database transaction log storage.

構文

object.SpaceAvailableInMB

Parts

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

Data Type

Float, for the Database and TransactionLog objects. The figure is accurate to two decimal places.

Long, for the DBFile object.

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetSpaceAvailableInMB(LPLONG pRetVal);

Or

HRESULT GetSpaceAvailableInMB(LPFLOAT pRetVal);

説明

The return value of SpaceAvailableInMB represents a number of megabytes.