| DatabaseHelper Class |
Namespace: CMS.DataEngine
public static class DatabaseHelper
The DatabaseHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| DEFAULT_DB_COLLATION |
Default database collation
|
| 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.
|
| Name | Description | |
|---|---|---|
| ChangeDatabaseCollation |
Change the collation of specified database.
| |
| 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.
| |
| DatabaseExists |
Checks if the specified database exists, returns true if database exists.
| |
| GetDatabaseCollation |
Returns database collation.
| |
| GetDatabaseName |
Returns the database name.
| |
| IsSupportedDatabaseCollation |
Checks if the specified collation is supported.
|