Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL-DMO doesn't return Server available
Message
 
 
À
19/01/2009 16:20:39
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Application:
Desktop
Divers
Thread ID:
01375255
Message ID:
01384633
Vues:
56
I was just googling on the problem and I found this

http://blogs.msdn.com/psssql/archive/2007/02/21/sql-server-2005-service-pack-2-is-released.aspx

>Hi, I attempt to discover if a SQL Server is available in the network, so I run the code below, but it returns that there is no SQL Server there, but I have a SQl Server in the PC and I can connect to it.
>What im missing here?
>Thanks in Advance
>
>Peter
>
>
>LOCAL oSQLDMO AS SQLDMO.SQLserver
>LOCAL oNames AS SQLDMO.NameList
>oSQLDMO = CREATEOBJECT("SQLDMO.SQLserver")
>oNames = oSQLDMO.APPLICATION.ListAvailableSQLServers()
>FOR ix=1 TO oNames.COUNT
> ? oNames.ITEM[ix]
>ENDFOR
>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform