MSI.DatabaseIsTablePersistent

number MSI.DatabaseIsTablePersistent ( 

number hDatabase,

string TableName )

Description

Calls the MsiDatabaseIsTablePersistent function that returns a numeric value that describes the state of a specified table in an MSI database.

Parameters

hDatabase

(number) Handle to the database that belongs to the relevant table.

Note: You can get the database handle by calling MSI.GetActiveDatabase.

TableName

(string) The name of the table that you want to query.

Returns

(number)  The state of the database. You can use Application.GetLastError to determine whether this action failed, and why.

CONSTANT

VALUE

DESCRIPTION

MSICONDITION_FALSE

0

The table is temporary.

MSICONDITION_TRUE

1

The table is persistent.

MSICONDITION_NONE

2

The table is unknown.

MSICONDITION_ERROR

3

An invalid handle or parameter was passed to the function.

See also:  Related Actions