Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Size Property
Collapse the table of content
Expand the table of content

Size Property

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 Size property exposes the total size, in megabytes, of the Microsoft SQL Server component referenced.

.Size [= value]


An expression that evaluates to an object in the Applies To list


A long integer

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 if a SQL-DMO object is used to create a new SQL Server database or log file. The property is read-only if a DBFile or LogFile object references an existing component.

HRESULT SetSize(long NewValue);

Community Additions

© 2015 Microsoft