Expand Minimize
This topic has not yet been rated - Rate this topic

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)
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.