Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL-DMO doesn't return Server available
Message
 
 
To
19/01/2009 16:20:39
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Application:
Desktop
Miscellaneous
Thread ID:
01375255
Message ID:
01375259
Views:
34
Check List of SQL Servers Thread #779753

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform