Server.DefaultTextMode Server.DefaultTextMode Server.DefaultTextMode Property

Definition

Gets or sets the Boolean property value that specifies whether the default text mode is set for the instance of SQL Server.

public:
 property bool DefaultTextMode { bool get(); void set(bool value); };
public bool DefaultTextMode { get; set; }
Public Property DefaultTextMode As Boolean
Property Value

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. Otherwise, false.

Examples

C#

srv.DefaultTextMode = True  

PowerShell

$srv.DefaultTextMode = $TRUE  

Remarks

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.

Applies to