Api.JetOpenTempTable2 method
Creates a temporary table with a single index. A temporary table stores and retrieves records just like an ordinary table created using JetCreateTableColumnIndex. However, temporary tables are much faster than ordinary tables due to their volatile nature. They can also be used to very quickly sort and perform duplicate removal on record sets when accessed in a purely sequential manner. Also see JetOpenTempTable(JET_SESID, [], Int32, TempTableGrbit, JET_TABLEID, []), JetOpenTempTable3(JET_SESID, [], Int32, JET_UNICODEINDEX, TempTableGrbit, JET_TABLEID, []). JetOpenTemporaryTable(JET_SESID, JET_OPENTEMPORARYTABLE).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetOpenTempTable2 ( _
sesid As JET_SESID, _
columns As JET_COLUMNDEF(), _
numColumns As Integer, _
lcid As Integer, _
grbit As TempTableGrbit, _
<OutAttribute> ByRef tableid As JET_TABLEID, _
columnids As JET_COLUMNID() _
)
'Usage
Dim sesid As JET_SESID
Dim columns As JET_COLUMNDEF()
Dim numColumns As Integer
Dim lcid As Integer
Dim grbit As TempTableGrbit
Dim tableid As JET_TABLEID
Dim columnids As JET_COLUMNID()
Api.JetOpenTempTable2(sesid, columns, _
numColumns, lcid, grbit, tableid, _
columnids)
public static void JetOpenTempTable2(
JET_SESID sesid,
JET_COLUMNDEF[] columns,
int numColumns,
int lcid,
TempTableGrbit grbit,
out JET_TABLEID tableid,
JET_COLUMNID[] columnids
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
columns
Type: []Column definitions for the columns created in the temporary table.
numColumns
Type: System.Int32Number of column definitions.
lcid
Type: System.Int32The locale ID to use to compare any Unicode key column data in the temporary table. Any locale may be used as long as the appropriate language pack has been installed on the machine.
grbit
Type: Microsoft.Isam.Esent.Interop.TempTableGrbitTable creation options.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDReturns the tableid of the temporary table. Closing this tableid with JetCloseTable(JET_SESID, JET_TABLEID) frees the resources associated with the temporary table.
columnids
Type: []The output buffer that receives the array of column IDs generated during the creation of the temporary table. The column IDs in this array will exactly correspond to the input array of column definitions. As a result, the size of this buffer must correspond to the size of the input array.
See also
Reference
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for