VistaDB 6
VistaDB.Provider Namespace / VistaDBConnection Class / PackDatabase Method / PackDatabase(String,OperationCallbackDelegate) Method
File name of the database to pack.
VistaDB.DDA.OperationCallbackDelegate method for feedback of pack progress. You may pass null or Nothing if callbacks are not needed.


In This Topic
    PackDatabase(String,OperationCallbackDelegate) Method
    In This Topic
    Pack a specified (unencrypted) database while using callbacks for progress reporting.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub PackDatabase( _
       ByVal fileName As System.String, _
       ByVal operationCallbackDelegate As OperationCallbackDelegate _
    ) 
    'Usage
     
    
    Dim fileName As System.String
    Dim operationCallbackDelegate As OperationCallbackDelegate
     
    VistaDBConnection.PackDatabase(fileName, operationCallbackDelegate)
    public static void PackDatabase( 
       System.string fileName,
       OperationCallbackDelegate operationCallbackDelegate
    )

    Parameters

    fileName
    File name of the database to pack.
    operationCallbackDelegate
    VistaDB.DDA.OperationCallbackDelegate method for feedback of pack progress. You may pass null or Nothing if callbacks are not needed.
    Remarks
    Pack database to recover unused space and re-balance the storage of tables and indexes.
    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