This documentation is archived and is not being maintained.
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The SpaceAllocatedOnFiles property returns the total disk resource allocated for transaction log implementing files.
An expression that evaluates to an object in the Applies To list
A string that identifies a Microsoft SQL Server database by name
HRESULT GetSpaceAllocatedOnFiles(SQLDMO_LPCSTR strDatabase,LPLONG pRetVal);
The return value of SpaceAllocatedOnFiles represents a number of kilobytes.