Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to list all the SQL Server in a Win98
Message
De
23/07/2003 10:13:41
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
How to list all the SQL Server in a Win98
Divers
Thread ID:
00812769
Message ID:
00812769
Vues:
40
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

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform