다음을 통해 공유


DefaultTextMode 속성

SQL Server 인스턴스에 대해 기본 텍스트 모드가 설정되어 있는지 여부를 지정하는 Boolean 속성 값을 가져오거나 설정합니다.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Property DefaultTextMode As Boolean
    Get
    Set
‘사용 방법
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)

속성 값

유형: System. . :: . .Boolean
SQL Server 인스턴스에 대해 기본 텍스트 모드가 설정되어 있는지 여부를 지정하는 Boolean 값입니다.
True이면 기본 텍스트 모드가 True로 설정되어 있고, 그렇지 않으면 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.

C#

srv.DefaultTextMode = True

PowerShell

$srv.DefaultTextMode = $TRUE