Edit

ServerName Property (SqlServerAlias Class)

Applies to: SQL Server

Gets the name of the instance of Microsoft SQL Server specified by the server connection alias.

Syntax

  
object.ServerName [= value]  

Parts

object
A SqlServerAlias Class object that represents a SQL Server alias.

Property Value/Return Value

A string value that specifies the name of the instance of SQL Server referenced by the server connection alias.

Remarks