SpaceAllocatedOnFiles Property

SQL-DMO

SQL-DMO

SpaceAllocatedOnFiles Property

The SpaceAllocatedOnFiles property returns the total disk resource allocated for transaction log implementing files.

Applies To
TransactionLog Object
Syntax

object.SpaceAllocatedOnFiles( Database )

Parts

object

Expression that evaluates to an object in the Applies To list

Database

String that identifies a Microsoft® SQL Server™ database by name

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetSpaceAllocatedOnFiles(
SQLDMO_LPCSTR strDatabase,
LPLONG pRetVal);

Remarks

The return value of SpaceAllocatedOnFiles represents a number of kilobytes.