Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to list all the SQL Server in a Win98
Message
From
23/07/2003 10:13:41
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
How to list all the SQL Server in a Win98
Miscellaneous
Thread ID:
00812769
Message ID:
00812769
Views:
39
I use this VFP code for that:
LOCAL lo,lp
lo=CREATEOBJECT("SQLDMO.Application")
IF TYPE("lo")<>"O" OR ISNULL(lo)
	MESSAGEBOX("Librería no instalada")
ELSE
	lp=lo.ListAvailableSQLServers()
	IF TYPE("lp")<>"O" OR ISNULL(lp)
		MESSAGEBOX("No se encuentran los 
servidores")
	ELSE
		MESSAGEBOX("Nº de servidores: " + TRANSFORM
(lp.count))
	ENDIF
ENDIF
RETURN .T.
Problem:

BOL say ListAvailableSQLServers() method is only compatible with NT/2000.
I try in Win98 SE and it work if the computer have a network card, but it haven´t then don´t work.

Any alternative solution?

Regards,
José Luis.

Quidquid latine dictum sit, altum sonatur

Next
Reply
Map
View

Click here to load this message in the networking platform