Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Has anyone used the DBLib dbserverenum to find SQL Servers?
Message
De
01/12/2000 16:29:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Has anyone used the DBLib dbserverenum to find SQL Servers?
Divers
Thread ID:
00448330
Message ID:
00448330
Vues:
53
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
Fil
Voir

Click here to load this message in the networking platform