Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.23 KB

JetDetachDatabase.md

File metadata and controls

52 lines (35 loc) · 1.23 KB

Home

Function name : JetDetachDatabase

Group: Extensible Storage Engine (ESE, Jet Blue) - Library: esent


Releases a database file that was previously attached to a database session.


Code examples:

Extensible Storage Engine class library

Declaration:

JET_ERR JET_API JetDetachDatabase(
  __in          JET_SESID sesid,
  __in          const tchar* szFilename
);  

FoxPro declaration:

DECLARE INTEGER JetDetachDatabase IN esent;
	INTEGER sesid,;
	STRING szFilename  

Parameters:

sesid The database session context to use for the API call.

szFilename The name of the database to detach. If szFilename is NULL or an empty string, all databases attached to sesid will be detached.


Return value:

Returns the JET_ERR datatype with one of predefined return codes.


Comments:

See also: JetCreateDatabase, JetAttachDatabase, JetCloseDatabase.