Opens a database previously attached with JetAttachDatabase(JET_SESID, String, AttachDatabaseGrbit), for use with a database session. This function can be called multiple times for the same database.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Function JetOpenDatabase ( _
sesid As JET_SESID, _
database As String, _
connect As String, _
<OutAttribute> ByRef dbid As JET_DBID, _
grbit As OpenDatabaseGrbit _
) As JET_wrn
'Usage
Dim sesid As JET_SESID
Dim database As String
Dim connect As String
Dim dbid As JET_DBID
Dim grbit As OpenDatabaseGrbit
Dim returnValue As JET_wrn
returnValue = Api.JetOpenDatabase(sesid, _
database, connect, dbid, grbit)
public static JET_wrn JetOpenDatabase(
JET_SESID sesid,
string database,
string connect,
out JET_DBID dbid,
OpenDatabaseGrbit grbit
)
Parameters
-
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session that is opening the database.
-
database
Type: System.StringThe database to open.
-
connect
Type: System.StringReserved for future use.
-
dbid
Type: Microsoft.Isam.Esent.Interop.JET_DBIDReturns the dbid of the attached database.
-
grbit
Type: Microsoft.Isam.Esent.Interop.OpenDatabaseGrbitOpen database options.
Return value
Type: Microsoft.Isam.Esent.Interop.JET_wrn
An ESENT warning code.
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
