Export (0) Print
Expand All
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)
final function get Name () : String

Property Value

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

Implements

IAlienRoot.Name

C#

Console.WriteLine(srv.Name)

PowerShell

Write-Host $srv.Name
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.