Gets the instance name of the instance of SQL Server.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Theproperty specifies the name of the instance of SQL Server. This is usually the computer name but it may be a named instance that was specified during setup. will return an empty string for the default instance.
Return to top