SqlInstallationHelper Class |
Namespace: CMS.DataEngine
public static class SqlInstallationHelper
The SqlInstallationHelper type exposes the following members.
Name | Description | |
---|---|---|
DB_CONNECTION_TIMEOUT |
Default SQL connection timeout.
| |
DBO_SCHEMA |
DB Owner schema
| |
RunQuery |
Executes when SQL script is run by the installer
|
Name | Description | |
---|---|---|
BackupDatabase |
Backup given database to filesystem.
| |
CopyDatabase |
Create a copy of database. This feature is available only in SQL Azure databases.
| |
CopyingCompleted |
Checks if given database is being copied.
| |
CreateDatabase |
Creates database.
| |
DatabaseExists |
Returns true if database exists.
| |
DatabaseIsSeparated |
Checks if database is separated or not.
| |
DeleteDatabase |
Deletes database.
| |
EnsureDefaultSchema |
Ensures the default schema for current user
| |
GetConnectionString |
Returns connection string for the given parameters.
| |
GetCurrentDefaultSchema(String) |
Returns current default schema
| |
GetCurrentDefaultSchema(IDataConnection) |
Returns current default schema
| |
GetDatabaseVersion |
Returns database version from settings key.
| |
GetDefaultBackupPath |
Retrieves SQL server default backup directory from it's registry.
| |
GetEngineEdition |
Returns database engine edition of the instance of SQL Server installed on the server.
| |
GetSQLInstallPath |
Gets the folder in which the SQL install scripts are located.
| |
GetSQLInstallPathToObjects |
Gets the folder in which the SQL install scripts for DB objects are located.
| |
GetUniqueDatabaseName |
Returns unique database name.
| |
ChangeDefaultSchema |
Changes the database schema to the given schema
| |
CheckAllConstraints |
Performs (re)check operation of all constraints for specified table.
If operation finish successfully untrusted constraints will be trusted.
| |
CheckIfSchemaExist |
Check if DB schema exists.
| |
InstallDatabase |
Performs the database installation.
| |
TestConnection |
Test connection.
|
Name | Description | |
---|---|---|
AfterDataGet |
Fired after data getting is finished.
|