DatabaseHelperChangeDatabaseCollation Method |
Change the collation of specified database.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public static void ChangeDatabaseCollation(
string connectionString,
string databaseName,
string collation
)
Parameters
- connectionString
- Type: SystemString
Connection string to the database - databaseName
- Type: SystemString
Database name (if NULL current database is used) - collation
- Type: SystemString
Collation
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when collation is null |
ArgumentException | Thrown when collation is empty string |
See Also