Server.TcpEnabled Property

Gets the Boolean value that determines whether TCP/IP protocol is enabled on this instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)


<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property TcpEnabled As Boolean
Dim instance As Server
Dim value As Boolean

value = instance.TcpEnabled
public bool TcpEnabled { get; }
property bool TcpEnabled {
    bool get ();
member TcpEnabled : bool
function get TcpEnabled () : boolean

Property Value

Type: System.Boolean
A Boolean value that specifies whether TCP/IP protocol is enabled on the instance of SQL Server. Returns True if TCP/IP is enabled, or False if TCP/IP is not enabled.