Server.InstanceName Property
SQL Server 2008
Gets the instance name of the instance of SQL Server.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Gets the instance name of the instance of SQL Server.