CreateDatabase(String,Boolean,Boolean,Boolean,String,Int32,Int32,Boolean) Method
In This Topic
Instantiates secure/unsecured DDA database object and creates it physically on hard drive
Syntax
'Declaration
Overloads Function CreateDatabase( _
ByVal As System.String, _
ByVal As System.Boolean, _
ByVal As System.Boolean, _
ByVal As System.Boolean, _
ByVal As System.String, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Boolean _
) As IVistaDBDatabase
'Usage
Dim instance As IVistaDBDDA
Dim fileName As System.String
Dim stayExclusive As System.Boolean
Dim staySingleProcess As System.Boolean
Dim processProtection 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, staySingleProcess, processProtection, encryptionKeyString, pageSize, LCID, caseSensitive)
IVistaDBDatabase CreateDatabase(
System.string ,
System.bool ,
System.bool ,
System.bool ,
System.string ,
System.int ,
System.int ,
System.bool
)
Parameters
- fileName
- Full database file name including path. The database will be written to the current working directory if no path is provided.
- stayExclusive
- After creation should the connection remain exclusive with no other overlapping connections allowed (true) or allow other connections to be opened (false).
- staySingleProcess
- If stayExclusive is false, should the database still be restricted to sharing only within the same process and AppDomain (true) or be shared between any processes (false). This setting is ignored if stayExclusive is true.
- processProtection
- If stayExclusive is false, should the database be protected against improper overlap between processes (true, the default for other overloads) or disable this protection (false). This setting is ignored if stayExclusive is true--otherwise, it applies to both single-process and multi-process sharing.
- encryptionKeyString
- Password or phrase to hash for encryption key, or null (Nothing in Visual Basic) for no encryption. An empty string is NOT valid and will result in an error.
- pageSize
- Page size (in kilobytes) to use for database storage. If 0 is passed default page size is used.
- LCID
- Locale id to use for culture info assigned to the database. If 0 is passed default locale id is used.
- caseSensitive
- Whether database character data is to be case sensitive.
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