Server.ServiceName Property
SQL Server 2012
Gets the service name for the server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Gets the service name for the server.
Namespace: Microsoft.SqlServer.Management.Smo