Click or drag to resize
DatabaseHelperChangeDatabaseCollation Method
Change the collation of specified database.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
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
ExceptionCondition
ArgumentNullExceptionThrown when collation is null
ArgumentExceptionThrown when collation is empty string
See Also