InstAPI.GetSQLToolsDirPath(StringBuilder, UInt32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère la racine du répertoire pour une installation des outils SQL Server.
public:
static bool GetSQLToolsDirPath(System::Text::StringBuilder ^ directoryPath, System::UInt32 % bufferSize);
public static bool GetSQLToolsDirPath(System.Text.StringBuilder directoryPath, ref uint bufferSize);
static member GetSQLToolsDirPath : System.Text.StringBuilder * uint32 -> bool
Public Shared Function GetSQLToolsDirPath (directoryPath As StringBuilder, ByRef bufferSize As UInteger) As Boolean
Paramètres
- directoryPath
- StringBuilder
Pointeur vers une mémoire tampon destinée à recevoir le chemin d'accès au Registre.
- bufferSize
- UInt32
Pointeur vers une valeur DWORD destinée à fournir la longueur de la mémoire tampon. Retourne la longueur requise si la mémoire tampon fournie est trop petite.
Retours
Retourne TRUE si l'appel a réussi ; retourne FALSE si l'appel échoue.
Remarques
N’oubliez pas qu’il n’existe qu’une seule installation d’outils par version de SQL Server, pas une seule installation d’outils par instance.