VistaDB 6
VistaDB.Provider Namespace / VistaDBConnection Class / PackDatabase Method / PackDatabase(Boolean) Method
True to create a backup copy before packing. The backup file will have the same filename but with .backupCopy appended. If a file by that name already exists it will be overwritten.


In This Topic
    PackDatabase(Boolean) Method
    In This Topic
    Pack the database for this open connection, making an optional backup first.
    Syntax
    'Declaration
     
    
    Public Overloads Sub PackDatabase( _
       ByVal backup As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As VistaDBConnection
    Dim backup As System.Boolean
     
    instance.PackDatabase(backup)
    public void PackDatabase( 
       System.bool backup
    )

    Parameters

    backup
    True to create a backup copy before packing. The backup file will have the same filename but with .backupCopy appended. If a file by that name already exists it will be overwritten.
    Remarks

    Pack database to recover unused space and re-balance the storage of tables and indexes.

    If not already, the connection will be converted to an ExclusiveReadWrite connection, if possible. If not possible then the operation will fail with an exception.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also