Menachem,
Check
SQLSMO for SQL server 2005 Message #
1162881>Yeah, I know. I am going to assume that the server is browseable and the documentation will just state that if you are installed 2k5 express on a server you have to make sure it is browseable. I need to enumerate the servers properly so the user can select which server they need to connect to.
>
>OSQL.EXE was one solution suggested in the past and that works. Only problem with that is:
>
>1) It is installed with a SQL Server component (and I do not think it is installed with the native client but rather the server)
>2) Given 1), I doubt I can distribute OSQL.EXE with my app to do the test
>3) OSQL runs in DOS so that would cause a DOS window to flash while it's doing its thing...
>
--sb--