Information générale
Catégorie:
Fonctions Windows API
Titre:
Has anyone used the DBLib dbserverenum to find SQL Servers?
I am trying to find a way to build a list of all SQL Servers on the network.
The DBLib dbserverenum API call (see SQL Books On-line) gives a way, but when I try to use it with the DECLARE stmt and then use the function...(see code below) I get the following error: "Cannot find entry point DbServerEnum in the DLL". I've looked at the DLL in the Dependency Walker, and the function is there in the DLL.
Any ideas?
Thanks in advance.
Bob Bartel
*********************************************
*Code
cstring = SPACE(250)
STORE 0 TO h,q
DECLARE Integer DbServerEnum IN NTWDBLIB.DLL ;
Integer n, String @cstring, Integer @h, Integer @q
result=DbServerEnum(0x0002,@cstring,@h,@q)
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement