'Declaration Public Overloads Function CreateDatabase( _ ByVal ignoreErrors As Boolean, _ ByVal createSchema As Boolean _ ) As Boolean
public bool CreateDatabase( bool ignoreErrors, bool createSchema )
Parameters
- ignoreErrors
- If set to true, SQL execution errors will be ignored.
- createSchema
If set to true, the schema will be created. Applicable only for Oracle, MySQL, and SQLite, for other providers it is ignored. For SQLite this parameter determines the behavior in case when "FailIfMissing=true;" is set in the connection string and the corresponding database file doesn't exist. In this case:
- CreateDatabase(false, false) fails with the "Could not find file 'filename'.".
- CreateDatabase(false, true) creates the database file.
In other cases this parameter is ignored for SQLite too.