다음을 통해 공유


Size Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The Size property exposes the total size, in megabytes, of the Microsoft SQL Server component referenced.

구문

object
.Size [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A 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 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.

Prototype (C/C++)

HRESULT GetSize(LPLONG pRetVal);
HRESULT SetSize(long NewValue);

Applies To:

Database Object

LogFile Object

DBFile Object

TransactionLog Object

FileGroup Object