VistaDB 5






VistaDB.DDA Namespace > IVistaDBDDA Interface : CreateDatabase Method
Full database file name including path. The database will be written to the current working directory if no path is provided.
Database file will be left in exclusive mode after the database is created.
Phrase used as a base string for encryption key. Encrypts entire database file or null for non encrypted database. String empty is NOT valid for an encryption key string.
Page size to use by database storage in kilobytes. If 0 is passed default page size is used
Locale id to use by culture info assigned to the database. If 0 is passed default locale id is used
Database character data are case sensitive
CreateDatabase Method (IVistaDBDDA)
Instantiates secure/unsecured DDA database object and creates it physically on hard drive
Syntax
'Declaration
 
Function CreateDatabase( _
   ByVal fileName As System.String, _
   ByVal stayExclusive As System.Boolean, _
   ByVal encryptionKeyString As System.String, _
   ByVal pageSize As System.Integer, _
   ByVal LCID As System.Integer, _
   ByVal caseSensitive As System.Boolean _
) As IVistaDBDatabase
'Usage
 
Dim instance As IVistaDBDDA
Dim fileName As System.String
Dim stayExclusive As System.Boolean
Dim encryptionKeyString As System.String
Dim pageSize As System.Integer
Dim LCID As System.Integer
Dim caseSensitive As System.Boolean
Dim value As IVistaDBDatabase
 
value = instance.CreateDatabase(fileName, stayExclusive, encryptionKeyString, pageSize, LCID, caseSensitive)
IVistaDBDatabase CreateDatabase( 
   System.string fileName,
   System.bool stayExclusive,
   System.string encryptionKeyString,
   System.int pageSize,
   System.int LCID,
   System.bool caseSensitive
)
function CreateDatabase( 
    fileName: System.String;
    stayExclusive: System.Boolean;
    encryptionKeyString: System.String;
    pageSize: System.Integer;
    LCID: System.Integer;
    caseSensitive: System.Boolean
): IVistaDBDatabase; 
function CreateDatabase( 
   fileName : System.String,
   stayExclusive : System.boolean,
   encryptionKeyString : System.String,
   pageSize : System.int,
   LCID : System.int,
   caseSensitive : System.boolean
) : IVistaDBDatabase;
IVistaDBDatabase* CreateDatabase( 
   System.string* fileName,
   System.bool stayExclusive,
   System.string* encryptionKeyString,
   System.int pageSize,
   System.int LCID,
   System.bool caseSensitive
) 
IVistaDBDatabase^ CreateDatabase( 
   System.String^ fileName,
   System.bool stayExclusive,
   System.String^ encryptionKeyString,
   System.int pageSize,
   System.int LCID,
   System.bool caseSensitive
) 

Parameters

fileName
Full database file name including path. The database will be written to the current working directory if no path is provided.
stayExclusive
Database file will be left in exclusive mode after the database is created.
encryptionKeyString
Phrase used as a base string for encryption key. Encrypts entire database file or null for non encrypted database. String empty is NOT valid for an encryption key string.
pageSize
Page size to use by database storage in kilobytes. If 0 is passed default page size is used
LCID
Locale id to use by culture info assigned to the database. If 0 is passed default locale id is used
caseSensitive
Database character data are case sensitive

Return Value

IVistaDBDatabase object instance
Remarks

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also