The DataFileSize property exposes the size of a Microsoft® SQL Server™ database used for replication distribution.
object.DataFileSize [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer specifying a file size in MB |
DataFileSize returns the current size of the primary file implementing a SQL Server replication distribution database.
Set DataFileSize to control the initial size of the database primary file created when using the DistributionDatabase object to create a SQL Server database for replication distribution.
Long
Read/write when using the DistributionDatabase object to create a replication distribution database. Read-only when a DistributionDatabase object references an existing SQL Server database.
HRESULT GetDataFileSize(LPDWORD pRetVal);
HRESULT SetDataFileSize(DWORD NewValue);