ServiceName Property (SqlService Class)

Applies to: SQL Server

Gets the name of the service.

Syntax

  
object.ServiceName [= value]  

Parts

object
A SqlService Class object that represents the service.

Property Value/Return Value

A string value that specifies the name of the service.

Remarks

See Also

Starting and Stopping Services