Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List of SQL Servers
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00779753
Message ID:
00779957
Views:
25
Windows API function NetServerEnum called with SV_TYPE_SQLSERVER parameter returns all available SQL servers.
DECLARE INTEGER NetServerEnum IN netapi32;
	INTEGER servername, INTEGER level,;
	INTEGER @bufptr, INTEGER prefmaxlen,;
	INTEGER @entriesread, INTEGER @totalentries,;
	INTEGER servertype, INTEGER domain,;
	INTEGER resume_handle
MSDN link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netserverenum.asp

Visual FoxPro code sample (members area)
http://www.news2news.com/vfp/?example=165&function=252
Previous
Reply
Map
View

Click here to load this message in the networking platform