--- title: "ServiceName Property (SqlService Class) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: wmi ms.topic: "reference" api_name: - "ServiceName Property (SqlService Class)" api_location: - "sqlmgmproviderxpsp2up.mof" topic_type: - "apiref" helpviewer_keywords: - "ServiceName property" ms.assetid: 8ac7387b-c3ae-4e45-b2cc-ebab3f83bfb2 author: CarlRabeler ms.author: carlrab manager: craigg --- # ServiceName Property (SqlService Class) Gets the name of the service. ## Syntax ``` object .ServiceName [= value] ``` ## Parts *object* A [SqlService Class](sqlservice-class.md) 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](https://technet.microsoft.com/library/ms174886\(v=sql.105\).aspx)