EsbArchiveBegin

Prepares the server for archiving by changing server mode to "read-only."

Syntax

EsbArchiveBegin (hCtx, AppName, DbName, FileName)
ByVal hCtx     As Long
ByVal AppName  As String
ByVal DbName   As String
ByVal FileName As String
ParameterDescription

hCtx

API context handle.

AppName

Name of application to archive.

DbName

Name of database to archive.

FileName

Name of file to contain archive information.

Notes

Return Value

None.

Access

The caller must have at least read access (ESB_PRIV_READ) to the database, and must select it as the active database using EsbSetActive().

Example

Declare Function EsbArchiveBegin Lib "ESBAPIN" (ByVal hCtx As Long, ByVal AppName As String, ByVal DbName As String, ByVal FileName As String) As Long

Sub ESB_ArchiveBegin ()
   Dim sts As Long
   Dim AppName As String 
   Dim DbName As String
   Dim FileName As String
   AppName = "Sample"
   DbName = "Basic"
   FileName = "Test.arc"
sts = EsbArchiveBegin (hCtx, AppName, DbName, FileName)
****
At this point, you can back up the server safely.

See Also