VistaDB 5






VistaDB.DDA Namespace > IVistaDBDDA Interface > CreateInMemoryDatabase Method : CreateInMemoryDatabase(String,Int32,Int32,Boolean) Method
Phrase as a base string for encryption key. Encrypts entire database file or null for non encrypted database. Empty string is not valid.
Pagesize in kilobytes. If 0 is passed default page size is used (varies by license type).
Locale id to use by culture info assigned to the database. If 0 is passed default locale id is used
Should character data be case sensitive
CreateInMemoryDatabase(String,Int32,Int32,Boolean) Method
Creates temporary memory backed database for use during a single session (exclusive mode only).
Syntax
'Declaration
 
Overloads Function CreateInMemoryDatabase( _
   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 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.CreateInMemoryDatabase(encryptionKeyString, pageSize, LCID, caseSensitive)
IVistaDBDatabase CreateInMemoryDatabase( 
   System.string encryptionKeyString,
   System.int pageSize,
   System.int LCID,
   System.bool caseSensitive
)
function CreateInMemoryDatabase( 
    encryptionKeyString: System.String;
    pageSize: System.Integer;
    LCID: System.Integer;
    caseSensitive: System.Boolean
): IVistaDBDatabase; 
function CreateInMemoryDatabase( 
   encryptionKeyString : System.String,
   pageSize : System.int,
   LCID : System.int,
   caseSensitive : System.boolean
) : IVistaDBDatabase;
IVistaDBDatabase* CreateInMemoryDatabase( 
   System.string* encryptionKeyString,
   System.int pageSize,
   System.int LCID,
   System.bool caseSensitive
) 
IVistaDBDatabase^ CreateInMemoryDatabase( 
   System.String^ encryptionKeyString,
   System.int pageSize,
   System.int LCID,
   System.bool caseSensitive
) 

Parameters

encryptionKeyString
Phrase as a base string for encryption key. Encrypts entire database file or null for non encrypted database. Empty string is not valid.
pageSize
Pagesize in kilobytes. If 0 is passed default page size is used (varies by license type).
LCID
Locale id to use by culture info assigned to the database. If 0 is passed default locale id is used
caseSensitive
Should character data be case sensitive

Return Value

IVistaDBDatabase object instance
Remarks

This database is deleted when the application is closed or when the application disposes of the database connection. The database is a virtual memory backed temporary file located in the users temporary directory path. The pagesize determines limits in the database engine routines for things like max table columns, indexes, etc.

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