Propriedade InstanceName
Gets the name of the instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
<DisplayDescriptionKeyAttribute("Server_InstanceNameDesc")> _
<DisplayNameKeyAttribute("Server_InstanceNameName")> _
ReadOnly Property InstanceName As String
Get
'Uso
Dim instance As IServerSetupFacet
Dim value As String
value = instance.InstanceName
[DisplayDescriptionKeyAttribute("Server_InstanceNameDesc")]
[DisplayNameKeyAttribute("Server_InstanceNameName")]
string InstanceName { get; }
[DisplayDescriptionKeyAttribute(L"Server_InstanceNameDesc")]
[DisplayNameKeyAttribute(L"Server_InstanceNameName")]
property String^ InstanceName {
String^ get ();
}
[<DisplayDescriptionKeyAttribute("Server_InstanceNameDesc")>]
[<DisplayNameKeyAttribute("Server_InstanceNameName")>]
abstract InstanceName : string
function get InstanceName () : String
Valor da propriedade
Tipo: System. . :: . .String
A String value that specifies the name of the instance of SQL Server.
Consulte também