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