InstAPI.GetSQLServerByName Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ordina l'elenco delle istanze di SQL Server per nome utilizzando un'espressione booleana.
Overload
| GetSQLServerByName(String, String) |
Ordina l'elenco delle istanze di SQL Server per nome utilizzando un'espressione booleana. |
| GetSQLServerByName(String, String, StringBuilder, UInt32) |
Obsoleta.
Ordina l'elenco delle istanze di SQL Server per nome utilizzando un'espressione booleana. |
GetSQLServerByName(String, String)
Ordina l'elenco delle istanze di SQL Server per nome utilizzando un'espressione booleana.
public:
static System::String ^ GetSQLServerByName(System::String ^ hostName, System::String ^ instanceName);
public static string GetSQLServerByName (string hostName, string instanceName);
static member GetSQLServerByName : string * string -> string
Public Shared Function GetSQLServerByName (hostName As String, instanceName As String) As String
Parametri
- hostName
- String
Stringa che rappresenta l'host.
Restituisce
Elenco delle istanze di SQL Server per nome utilizzando un'espressione booleana.
Si applica a
GetSQLServerByName(String, String, StringBuilder, UInt32)
Attenzione
This overload is obsolete; use GetSQLServerByName(hostName, instanceName), instead.
Ordina l'elenco delle istanze di SQL Server per nome utilizzando un'espressione booleana.
public:
static bool GetSQLServerByName(System::String ^ hostName, System::String ^ instanceName, System::Text::StringBuilder ^ sqlServer, System::UInt32 % bufferSize);
[System.Obsolete("This overload is obsolete; use GetSQLServerByName(hostName, instanceName), instead.")]
public static bool GetSQLServerByName (string hostName, string instanceName, System.Text.StringBuilder sqlServer, ref uint bufferSize);
[<System.Obsolete("This overload is obsolete; use GetSQLServerByName(hostName, instanceName), instead.")>]
static member GetSQLServerByName : string * string * System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLServerByName (hostName As String, instanceName As String, sqlServer As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Parametri
- hostName
- String
Stringa che rappresenta l'host.
- sqlServer
- StringBuilder
Un input di stringa utilizzato per SQL Server.
- bufferSize
- UInt32
Un puntatore a un valore DWORD per fornire la lunghezza del buffer. Restituisce la lunghezza obbligatoria se il buffer fornito è troppo piccolo.
Restituisce
true se i nomi di SQL Server vengono ordinati per nome; in caso contrario, false.
- Attributi