Server.NamedPipesEnabled Property
Applies To: SQL Server 2016 Preview
Gets the Boolean value that specifies whether Named Pipes provider is enabled for client-server connectivity on the instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public bool NamedPipesEnabled { get; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property bool NamedPipesEnabled {
bool get();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member NamedPipesEnabled : bool with get
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public ReadOnly Property NamedPipesEnabled As Boolean
Property Value
Type: System.Boolean
A Boolean value that specifies whether the Named Pipes provider is enabled on instance of SQL Server.
If True, Named Pipes is enabled. Otherwise, False (default).
Examples
Legacy Code Example
C#
Server srv = new Server("(local)");
Console.WriteLine("The Named Pipes provider is enabled: " + srv.NamedPipesEnabled.ToString()
PowerShell
$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "The Named Pipes provider is enabled:" $srv.NamedPipesEnabled
See Also
Server Class
Microsoft.SqlServer.Management.Smo Namespace
Unable to find linked topic '776ac273-bbe5-45e2-8bc8-a6f2b9cac03a'.Broken link. The 'b1d56f2f-603f48f2-b902-c715f14a6db9' GUID is not correct.
Return to top