InstanceDatabaseOptions.CollationName Property
Gets or sets the instance database collation.
命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Property CollationName As String
public string CollationName { get; set; }
public:
property String^ CollationName {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_CollationName ()
/** @property */
public void set_CollationName (String value)
public function get CollationName () : String
public function set CollationName (value : String)
屬性值
A String containing the Microsoft SQL Server or Microsoft Windows collation name.
備註
The CollationName property defines the character set and sort order for the instance database. The value must conform to the SQL Server nvarchar data type and must be the name of a valid Windows or SQL Server collation.
If you do not provide a collation name, the instance database collation is the same as the default collation of the Database Engine instance that hosts the database.
The collation of all instance databases in a Notification Services instance must match the collation of the application databases.
範例
The following examples show how to define the instance database collation:
idb.CollationName = "Latin1_General_CS_AS";
idb.CollationName = "Latin1_General_CS_AS"
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
InstanceDatabaseOptions Class
InstanceDatabaseOptions Members
Microsoft.SqlServer.Management.Nmo Namespace