Joe
Thu Jul 24 02:10:37 CDT 2008
Thanks for sharing your success. It really annoys me when people just post
back "solved" without giving everyone else the benefit of their solution.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
"Carlos Felipe França da Fonseca" <carlosfelipefranca@gmail.com> wrote in
message news:#mQWKcR7IHA.4864@TK2MSFTNGP06.phx.gbl...
> I figured it out!
>
> str = "localhost"
> Set objSQLDMOApp = CreateObject("SQLDMO.SQLServer2")
> set objInstances = objSQLDMOApp.ListInstalledInstances(str)
> For Count=1 To objInstances.Count
> WScript.Echo objInstances.Item(count)
> Next
>
> Thx,
>
> Felipe
>
> "Carlos Felipe França da Fonseca" <carlosfelipefranca@gmail.com> wrote in
> message news:uM$nJRR7IHA.3736@TK2MSFTNGP06.phx.gbl...
>> Can someone give me an example of how I can use the method
>> ListInstalledInstances of SQLServer2 object in VBScript?
>>
>> I need a list of all SQL instances installed on a server.
>>
>> Thx,
>>
>> Felipe
>>
>
>