SpaceAllocatedOnDevice Method

SQLServer.Database.TransactionLog Object

Description

Returns the total amount of storage space this transaction log has allocated on the specified device.

Visual Basic

lAllocated = TransactionLog.SpaceAllocatedOnDevice ( [DeviceName :=] idDevice )

C++

HRESULT pTransactionLog->GetSpaceAllocatedOnDevice (
SQLOLE_LPCSTR
idDevice,
LPLONG
plAllocated );

Elements

Element Type Description

lAllocated Long Total allocated storage space in megabytes
idDevice Identifier Device name

Remarks

This is an indexed property.