--- title: "ServiceName Property (SqlService)" ms.custom: seo-lt-2019 ms.date: "03/04/2017" ms.prod: sql ms.prod_service: "database-engine" ms.reviewer: "" ms.technology: wmi ms.topic: "reference" apiname: - "ServiceName Property (SqlService Class)" apilocation: - "sqlmgmproviderxpsp2up.mof" apitype: "MOFDef" helpviewer_keywords: - "ServiceName property" ms.assetid: 8ac7387b-c3ae-4e45-b2cc-ebab3f83bfb2 author: "CarlRabeler" ms.author: "carlrab" --- # ServiceName Property (SqlService Class) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx-md](../../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Gets the name of the service. ## Syntax ``` object.ServiceName [= value] ``` ## Parts *object* A [SqlService Class](../../../relational-databases/wmi-provider-configuration-classes/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)