The DatabaseHelper type exposes the following members.
Back to Top
Back to Top
Methods
| Name | Description | |
|---|---|---|
| DatabaseExists |
Checks if the specified database exists, returns true if database exists.
| |
| GetDatabaseCollation |
Returns database collation.
| |
| GetDatabaseName |
Returns the database name.
| |
| ChangeDatabaseCollation(String, String) |
Change the collation of specified database.
| |
| ChangeDatabaseCollation(String, String, String) |
Change the collation of specified database.
| |
| CheckDatabaseCollation |
Checks if the specified database has correct collation.
| |
| CheckDatabaseVersion |
Checks the database version, returns true if the version is correct, reports error in case the version is wrong
| |
| CheckDBPermission |
Checks if SQL account is granted with specific permission.
|
Properties
| Name | Description | |
|---|---|---|
| DatabaseCollation |
Database collation.
| |
| DatabaseVersion |
Returns the version of the database that the application uses. Returns null if connection string is not initialized.
| |
| IsCorrectDatabaseVersion |
Returns whether database version is correct and matches the application version.
| |
| IsDatabaseAvailable |
Indicates whether connection string is set and objects exist in database.
|
See Also