JetCloseDatabase Function
Applies to: Windows | Windows Server
The JetCloseDatabase function closes a database file that was previously opened with JetOpenDatabase.
JET_ERR JET_API JetCloseDatabase(
__in JET_SESID sesid,
__in JET_DBID dbid,
__in JET_GRBIT grbit
);
sesid
The database session context that will be used for the API call.
dbid
The database to be closed.
grbit
Reserved for future use.
This function returns the JET_ERR datatype with one of the following return codes. For more information about the possible ESE errors, see Extensible Storage Engine Errors and Error Handling Parameters.
Return code |
Description |
---|---|
JET_errDatabaseNotFound |
The database was not previously opened. |
JET_errInvalidDatabaseId |
The dbid parameter was not a valid database identifier. |
JET_errSuccess |
The operation completed successfully. |
Requirement | Value |
---|---|
Client |
Requires Windows Vista, Windows XP, or Windows 2000 Professional. |
Server |
Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server. |
Header |
Declared in Esent.h. |
Library |
Use ESENT.lib. |
DLL |
Requires ESENT.dll. |
JET_ERR
JET_GRBIT
JET_SESID
JET_TABLEID
JetCreateDatabase
JetCreateDatabase2
JetOpenDatabase