Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Matrix)]
public:
virtual property String^ Name {
	String^ get () sealed;
}

Property Value

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

Implements

IAlienRoot::Name

C#

Console.WriteLine(srv.Name)

PowerShell

Write-Host $srv.Name

Community Additions

Show:
© 2015 Microsoft