Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Has anyone used the DBLib dbserverenum to find SQL Servers?
Message
From
01/12/2000 16:29:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Has anyone used the DBLib dbserverenum to find SQL Servers?
Miscellaneous
Thread ID:
00448330
Message ID:
00448330
Views:
51
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)
Next
Reply
Map
View

Click here to load this message in the networking platform