Export (0) Print
Expand All
Expand Minimize

Server.Name Property

Gets the name of the server, which is the physical machine name.

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

[SfcPropertyAttribute]
[SfcKeyAttribute()]
public string Name { get; }

Property Value

Type: System.String
A String value that specifies the name of server.

Implements

IAlienRootName()

Console.WriteLine(srv.Name)

Community Additions

ADD
Show:
© 2014 Microsoft