title HostName Property (SqlService) ms.custom seo-lt-2019 ms.date 03/06/2017 ms.prod sql ms.prod_service database-engine ms.reviewer ms.technology wmi ms.topic reference apiname HostName Property (SqlService Class) apilocation sqlmgmproviderxpsp2up.mof apitype MOFDef helpviewer_keywords HostName property ms.assetid 3df0ca15-9eca-4cbd-8c39-cb00be6a0215 author CarlRabeler ms.author carlrab HostName Property (SqlService Class) [!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md] Gets the host name of the service. Syntax object.HostName [= value] Parts object A SqlService Class object that represents the service. Property Value/Return Value A string value that specifies the host name of the service. Remarks See Also Starting and Stopping Services