PETableType

PETableType contains information for identifying the type of a specified table. This information is gathered using PEGetNthTableType.

C Syntax
typedef struct PETableType {
    WORD StructSize;
    char DLLName [PE_DLL_NAME_LEN];
    char DescriptiveName [PE_FULL_NAME_LEN];
    WORD DBType;
} PETableType;
Members

StructSize

Specifies the size of the PETableType structure. Initialize this member to PE_SIZEOF_TABLE_TYPE.

DLLName

Specifies the name of the appropriate database DLL (of length PE_DLL_NAME_LEN = 64, NULL-terminated) for the table of interest. Select the DLL you want to use from the table below:


Use this DLL For this standard non-SQL database


PDBBDE.DLL

Borland Database Engine


PDBBND.DLL

Bound reports


PDBDAO.DLL

DAO data sources (Access)


PDBJET.DLL

Access


PDBPDX.DLL

Paradox


PDBXBSE.DLL

dBASE, FoxPro, Clipper


PDCTBTRV.DLL

Btrieve


PDSDB22.DLL

DB2/2


PDSGUPTA.DLL

Gupta


PDSNETW.DLL

Netware


PDSODBC.DLL

ODBC. See Remarks below.


PDSORACL.DLL

Oracle


PDSSYB10.DLL

Sybase 10/11


PDSSYBAS.DLL

Sybase

DescriptiveName

Specifies the full description of the table of interest (of length PE_FULL_NAME_LEN = 256, NULL-terminated).

DBType

Specifies the type of database that contains the table of interest. Use one of the PE_DT_XXX Database Type Constants.

Remarks

For PDSODBC.DLL, the DescriptiveName includes the ODBC data source name.

VB Type Listing
Type PETableType
    StructSize As Integer
    DLLName As String * PE_DLL_NAME_LEN
    DescriptiveName As String * PE_FULL_NAME_LEN
    DBType As Integer
End Type
Delphi Record Listing
type
    PEDllNameType = array[0..PE_DLL_NAME_LEN-1] of char;
    PEFullNameType = array[0..PE_FULL_NAME_LEN-1] of char;
    PETableType = record
        StructSize: Word;
        DLLName: PEDllNameType;
        DescriptiveName: PEFullNameType;
        DBType: Word;
    end;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com