sp_mgGetAllTables

Advantage SQL Engine

Returns a result set containing all tables currently opened on the server.

Syntax

EXECUTE PROCEDURE sp_mgGetAllTables()

Parameters

TableName (O)

Fully qualified path to the table.

LockType (O)

Type of locking mode the table was opened with.

LockTypeValue (O)

Integer value of the lock type. This is the same value as is returned in the ADS_MGMT_TABLE_INFO structure by the AdsMgGetOpenTables API.

Remarks

The LockType parameter returns the following values. The corresponding LockTypeValue is given in parentheses.

ADS (1) for Advantage Proprietary Locking,

CDX (2) for Advantage Compatibility Locking on a DBF/CDX file and,

NTX (3) for Advantage Compatibility Locking on a DBF/NTX file.

ADT (4) for Advantage Compatibility Locking on an ADT table opened by Advantage Local Server.

Note With Advantage Local Server, sp_mgGetAllTables will only return information on tables opened from the instance of Advantage Local Server currently loaded into memory. Information about tables loaded from other instances of Advantage Local Server will not be returned.

Example

EXECUTE PROCEDURE sp_mgGetAllGables();

See Also

sp_mgGetTableIndexes

sp_mgGetTableUsers

sp_mgGetUserTables

sp_mgGetAllIndexes