Using Win32 functions in Visual FoxPro Image Gallery
Extensible Storage Engine (ESE, Jet Blue)
JetAddColumn
JetBeginSession
JetBeginTransaction
JetCloseDatabase
JetCloseTable
JetCommitTransaction
JetCreateDatabase
JetCreateInstance
JetCreateTable
JetDeleteTable
JetDetachDatabase
JetEndSession
JetGetColumnInfo
JetGotoBookmark
JetInit
JetMove
JetOpenTable
JetPrepareUpdate
JetRetrieveColumn
JetRollback
JetSetColumn
JetTerm
JetUpdate
Code examples:
Extensible Storage Engine class library
JetCreateDatabase
..msdn    Add comment     W32 Constants      Translate this page
Creates and attaches a database file to be used with the ESE database engine.
Code examples:
Extensible Storage Engine class library
Declaration:
JET_ERR JET_API JetCreateDatabase(
  __in          JET_SESID sesid,
  __in          JET_PCSTR szFilename,
  __in_opt      JET_PCSTR szConnect,
  __out         JET_DBID* pdbid,
  __in          JET_GRBIT grbit
);
FoxPro declaration:
DECLARE INTEGER JetCreateDatabase IN esent;
    INTEGER sesid,;
    STRING szFilename,;
    INTEGER szConnect,;
    INTEGER @pdbid,;
    INTEGER grbit
Parameters:
sesid
The database session context to use for the API call.

szFilename
The name of the database to be created.

szConnect
Reserved for future use. Set to NULL.

pdbid
Pointer to a buffer that, on a successful call, contains the identifier of the database. On failure, the value is undefined.

grbit
A group of bits specifying zero or more of predefined options.
Return value:
This function returns the JET_ERR datatype with one of predefined return codes.
Usage:
LOCAL nDatabase
nDatabase=0

THIS.errorno = JetCreateDatabase(THIS.jetsessionid,;
    m.cDbName, 0, @nDatabase, 0)
My comment:
Currently, up to seven databases can be created per instance. JetCreateDatabase will implicitly open the database. It is not necessarily to subsequently call JetOpenDatabase.

See also: JetAttachDatabase, JetOpenDatabase, JetCloseDatabase
Word Index links for the JetCreateDatabase :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-11 16:41:46
Modified: 2008-01-11 16:47:17
Visited in last 7 days: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.87.70.14)
2.13 min.Example: 'How to prevent users from accessing the Windows Desktop and from switching to other applications'
10.13 min.Function: 'ChooseFont'
6.46 hrs.Function: 'WSACloseEvent'
Function group: 'Windows Sockets 2 (Winsock)'
6.47 hrs.Function: 'mmioAscend'
Function group: 'Windows Multimedia'
6.48 hrs.Function: 'WNetGetProviderName'
Function group: 'Windows Networking'
6.49 hrs.Function: 'NetScheduleJobDel'
Function group: 'Network Management'
6.51 hrs.Function: 'CryptEnumProviders'
Function group: 'Cryptography Reference'
6.56 hrs.Function: 'NetApiBufferFree'
3 day(s)Function: 'GetForegroundWindow'
Function group: 'Window'
 Example: 'GDI+: how to make VFP controls visually shake and shudder'
Google
Advertise here!