InstAPI.GetSQLServerByID Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Recupera el nombre del servidor de una instancia SQL por el identificador de instancia y nombre de host dados.
Sobrecargas
| GetSQLServerByID(String, INST_ID, StringBuilder, UInt32) |
Obsoletos.
Recupera el nombre del servidor de una instancia SQL por el identificador de instancia y nombre de host dados. |
| GetSQLServerByID(String, INST_ID) |
Recupera el nombre del servidor de una instancia SQL por el identificador de instancia y nombre de host dados. |
GetSQLServerByID(String, INST_ID, StringBuilder, UInt32)
Precaución
This overload is obsolete; use GetSQLServerByID(hostName, instanceID), instead.
Recupera el nombre del servidor de una instancia SQL por el identificador de instancia y nombre de host dados.
public:
static bool GetSQLServerByID(System::String ^ hostName, Microsoft::SqlServer::INST_ID ^ instanceID, System::Text::StringBuilder ^ sqlServerName, System::UInt32 % bufferSize);
[System.Obsolete("This overload is obsolete; use GetSQLServerByID(hostName, instanceID), instead.")]
public static bool GetSQLServerByID(string hostName, Microsoft.SqlServer.INST_ID instanceID, System.Text.StringBuilder sqlServerName, ref uint bufferSize);
[<System.Obsolete("This overload is obsolete; use GetSQLServerByID(hostName, instanceID), instead.")>]
static member GetSQLServerByID : string * Microsoft.SqlServer.INST_ID * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLServerByID (hostName As String, instanceID As INST_ID, sqlServerName As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Parámetros
- hostName
- String
Puntero al nombre de host del servidor.
- instanceID
- INST_ID
Puntero al identificador de la instancia pertinente.
- sqlServerName
- StringBuilder
Puntero a un búfer para recibir el nombre del servidor SQL Server.
- bufferSize
- UInt32
Puntero a un valor DWORD para proporcionar la longitud del búfer. Devuelve la longitud requerida si el búfer proporcionado es demasiado pequeño.
Devoluciones
true, si la llamada se ejecutó correctamente; de lo contrario, false.
- Atributos
Se aplica a
GetSQLServerByID(String, INST_ID)
Recupera el nombre del servidor de una instancia SQL por el identificador de instancia y nombre de host dados.
public:
static System::String ^ GetSQLServerByID(System::String ^ hostName, Microsoft::SqlServer::INST_ID ^ instanceID);
public static string GetSQLServerByID(string hostName, Microsoft.SqlServer.INST_ID instanceID);
static member GetSQLServerByID : string * Microsoft.SqlServer.INST_ID -> string
Public Shared Function GetSQLServerByID (hostName As String, instanceID As INST_ID) As String
Parámetros
- hostName
- String
Puntero al nombre de host del servidor.
- instanceID
- INST_ID
Puntero al identificador de la instancia pertinente.
Devoluciones
El nombre del servidor de una instancia de SQL por el identificador de instancia y el nombre de host dados.