SQL-DMO
Size Property
The Size property exposes the total size, in megabytes, of the Microsoft® SQL Server™ 2000 component referenced.
Applies To
Database Object | LogFile Object |
DBFile Object | TransactionLog Object |
FileGroup Object |
Syntax
object.Size [= value]
Parts
object
Expression that evaluates to an object in the Applies To list
value
Long integer
Data Type
Long.
Modifiable
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.
Prototype (C/C++)
HRESULT GetSize(LPLONG pRetVal);
HRESULT SetSize(long NewValue);