TurboDB ADO.NET Data Provider
|Previous Top Next|
Creates a new TurboDB database.
public void CreateDatabase(TurboDBDatabaseType dbType)
Public Sub CreateDatabase(dbType As TurboDBDatabaseType)
dbType determines, whether a single-file or directory database is created. You must set the DataSource property to the file name for the new TurboDB database file or directory before calling CreateDatabase.
In version 4 and below this method did not have the parameter. To have the same effect, put TurboDBDatabaseType.SingleFile here. The method was expanded to make it possible to create directory-based databases as well.
In TurboDB Managed the argument to dbType must always be TurboDBDatabaseType.SingleFile because directory-based databases are not supported.
// This code creates a new TurboDB database file and opens it
TurboDBConnection turboDBConnection = new TurboDBConnection();
turboDBConnection.ConnectionString = @"DataSource=""c:\mydatabases\database98.tdbd"""