--- title: "ServerName Property (SqlServerAlias 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: - "ServerName Property (SqlServerAlias Class)" api_location: - "sqlmgmproviderxpsp2up.mof" topic_type: - "apiref" helpviewer_keywords: - "ServerName property" ms.assetid: 58c82b19-b548-42fa-9c5a-059b606da097 author: CarlRabeler ms.author: carlrab manager: craigg --- # ServerName Property (SqlServerAlias Class) Gets the name of the instance of [!INCLUDE[msCoName](../../../includes/msconame-md.md)] [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] specified by the server connection alias. ## Syntax ``` object .ServerName [= value] ``` ## Parts *object* A [SqlServerAlias Class](sqlserveralias-class.md) object that represents a [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] alias. ## Property Value/Return Value A string value that specifies the name of the instance of [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] referenced by the server connection alias. ## Remarks