Re: SQLDMO.NameList returns Oracle??

Tech-Archive recommends: Fix windows errors by optimizing your registry



Just SQL Server instances. You can find more information in
books online under:
ListAvailableSQLServers Method

-Sue

On Wed, 18 May 2005 10:15:59 +1000, "Graham R Seach"
<gseach@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

>Hi guys,
>
>I need to know whether SQLDMO.NameList returns only SQL Server instance
>names, or whether it returns ALL server instances in the domain (including
>Oracle).
>
>I'm doing a project for a government department (an Oracle shop). I have
>been building a system that backends to SQL Server 2000 Ent. I had approval
>to do so, but now, IBM/GSA (who manage the network infrastructure) have said
>"no" to SQL Server. I'm almost finished the damned project, so I need
>ammunition to take into a meeting.
>
>The following code returns a bunch of instance names, which I assume (given
>that the documentation supports my contention) to be SQL Server instances,
>not Oracle. If as this list suggests, there are already SQL Server instances
>in the domain, I can go into the meeting with a big argument to counter
>their claim of an homogenous Oracle-only environment.
>
> Dim oServers As SQLDMO.NameList
> Dim oServer As Variant
> Dim sServerNames() As String
> Dim iCtr As Integer
>
> iCtr = 0
>
> Set oServers = SQLDMO.Application.ListAvailableSQLServers
>
> 'Iterate through the server names, and add them to the return string
> For Each oServer In oServers
> If Not IsNull(oServer) Then
> iCtr = iCtr + 1
> ReDim Preserve sServerNames(iCtr)
> sServerNames(iCtr) = oServer
> End If
> Next oServer
>
>- Graham
>
>

.



Relevant Pages

  • RE: Discovering SQL Server instances in Server Explorer
    ... Discovering SQL Server instances in Server Explorer ... 'Debugger Users' and 'VS Developers'. ... I can remote desktop to the server hosting MSDE and use the OSQL utility without a problem. ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: Two Instances SQL Server 2000 - on same server
    ... you'll get better memory utilization... ... Wayne Snyder, MCDBA, SQL Server MVP ... Each of the two SQL Server instances hosts a rather ... > large analytical database. ...
    (microsoft.public.sqlserver.datawarehouse)
  • Re: Linked Server Connection Error: 18459
    ... Did either of your SQL Server instances run under a domain user account? ... I recommend that you first ensure that your SQL Server ...
    (microsoft.public.sqlserver.connect)
  • Running multiple instances in production environment. Good or bad?
    ... Hoping to get a answers from people with "real life" experience of ... As I have a Sql Server Standard Edition, "Per Processor" license, I am ... now considering to have two different Sql Server instances, ... to be negative to running multiple instances in a production ...
    (microsoft.public.sqlserver.server)