 |
JetCreateTable ..msdn Add comment W32 Constants Translate this page |
 |
 |
Creates an empty table in an ESE database.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
JET_ERR JET_API JetCreateTable(
__in JET_SESID sesid,
__in JET_DBID dbid,
__in const tchar* szTableName,
__in unsigned long lPages,
__in unsigned long lDensity,
__out JET_TABLEID* ptableid
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER JetCreateTable IN esent;
INTEGER sesid,;
INTEGER dbid,;
STRING szTableName,;
LONG lPages,;
LONG lDensity,;
INTEGER @ptableid
|
 |
 |
 |
| Parameters: |
 |
sesid
The database session context to use.
dbid
The database identifier to use.
szTableName
The name of the index to create.
lPages
The initial number of database pages to allocate for the table.
lDensity
The table density, in percentage points.
ptableid
On success, the table identifier is returned in this field. The value is undefined if the API does not return JET_errSuccess (0).
|
 |
 |
| Return value: |
 |
| Returns the JET_ERR datatype with one of predefined return codes. |
 |
 |
| Usage: |
 |
LOCAL nTable
nTable=0
THIS.errorno = JetCreateTable(THIS.jetsessionid,;
THIS.jetdatabaseid,;
m.cTablename, 0,0, @nTable)
|
 |
 |
| My comment: |
 |
JetCreateTable creates a table which does not contain any columns. To add columns, see JetAddColumn.
The table should usually be closed with JetCloseTable.
|
 |
 |
| Word Index links for the JetCreateTable : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-11 16:54:19 | | Modified: | 2008-01-11 16:58:01 | Visited in last 7 days: 15 |