The Size property exposes the total size, in megabytes, of the Microsoft® SQL Server™ component referenced.
Database Object | LogFile Object |
DBFile Object | TransactionLog Object |
FileGroup Object |
object.Size [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer |
Long
Read-only for the Database, FileGroup, and TransactionLog objects.
The Size property is used to set the initial size of operating system files referenced by DBFile and LogFile objects. The property is read/write when using a SQL-DMO object to create a new SQL Server database or log file. The property is read-only when a DBFile or LogFile object references an existing component.
HRESULT GetSize(LPLONG pRetVal);
HRESULT SetSize(long NewValue);