General information
Category:
Windows API functions
Title:
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)
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only