Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Has anyone used the DBLib dbserverenum to find SQL Serve
Message
From
01/12/2000 19:16:35
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00448330
Message ID:
00448398
Views:
9
Thanks! What a simple thing to goof up on!

>>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.
>>
>
>The DECLARE is case-sensitive; use dbserverenum not DbServerEnum in the DECLARE statement.
>
>>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform