Click or drag to resize

ServerClientSessionSharedNewDatabase Method

Create a new Database with a given database number

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public override Database NewDatabase(
	uint dbNum,
	uint megaBytesPresize = 0,
	string name = null,
	bool signalError = true
)

Parameters

dbNum
Type: SystemUInt32
Database number of the database to create
megaBytesPresize (Optional)
Type: SystemUInt32
If you know that the Database will be large, presizing it may avoid file fragmentation. Default value is 0
name (Optional)
Type: SystemString
Optionally name the new Database
signalError (Optional)
Type: SystemBoolean
Optionally signal an error if creation of new Database fails

Return Value

Type: Database
The newly created Database or throws and exception if the Database already exist
See Also