Share via


Propriété DefaultTextMode

Obtient ou définit la valeur de la propriété Boolean qui spécifie si le mode texte par défaut est défini pour l'instance de SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Property DefaultTextMode As Boolean
    Get
    Set
'Utilisation
Dim instance As Server
Dim value As Boolean

value = instance.DefaultTextMode

instance.DefaultTextMode = value
public bool DefaultTextMode { get; set; }
public:
property bool DefaultTextMode {
    bool get ();
    void set (bool value);
}
member DefaultTextMode : bool with get, set
function get DefaultTextMode () : boolean
function set DefaultTextMode (value : boolean)

Valeur de propriété

Type : System. . :: . .Boolean
Valeur Boolean qui spécifie si le mode texte par défaut est défini pour l'instance de SQL Server.
Si la valeur est True, le mode texte par défaut prend la valeur True. Dans le cas contraire, la valeur est False.

Notes

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.

Exemples

C#

srv.DefaultTextMode = True

PowerShell

$srv.DefaultTextMode = $TRUE