Server.DefaultTextMode Property
Gets or sets the Boolean property value that specifies whether the default text mode is set for the instance of SQL Server.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
語法
'宣告
Public Property DefaultTextMode As Boolean
public bool DefaultTextMode { get; set; }
public:
property bool DefaultTextMode {
bool get ();
void set (bool value);
}
/** @property */
public boolean get_DefaultTextMode ()
/** @property */
public void set_DefaultTextMode (boolean value)
public function get DefaultTextMode () : boolean
public function set DefaultTextMode (value : boolean)
屬性值
A Boolean value that specifies the whether the default text mode is set for the instance of SQL Server. If True, the default text mode is set to True. If False, the default text mode is not set False.
備註
更新的文字:
The DefaultTextMode is an SMO setting that specifies the default value for the TextMode property of all the database objects on the instance of SQL Server. The View object, for example, supports the TextMode property. The DefaultTextMode sets the default value of this property on the instance of SQL Server.
The TextMode property specifies whether header information is generated automatically for SMO database objects that have a Text property. In SMO, the View object requires you to specify the definition of the view by using a Transact-SQL statement in the Text property.
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
範例
srv.DefaultTextMode = True
執行緒安全性
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 的硬體和軟體需求>。
請參閱
參考
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
其他資源
How to: Get and Set a Property in Visual Basic .NET
Setting Properties
管理伺服器