A call to NetServerEnum returns an array of SERVER_INFO_101 structures.  The
TYPE field of each structure can contain whether the machine is a SQL Server
machine.  You can also request a list of SQL Server machines only.

Other NetServer functions like NetServerGetInfo might also be useful.  See
the Win32 Programmers Reference help file for details.

Paul Ritchie
RCS (NZ) Ltd.


> -----Original Message-----
> From: Donovan J. Edye [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 13 June 2000 17:46
> To: Multiple recipients of list delphi
> Subject: [DUG]: Determining SQL Servers on a subnet...
> 
> 
> G'Day,
> 
> I was wondering if anyone had any suggestions or code on how I could
> determine what machines on a particular subnet are running MS-SQL7?
> 
> TIA
> 
> --------------------------------------------------------------
> ----------
> --Donovan
> Donovan J. Edye [www.edye.wattle.id.au]
> Namadgi Systems, Delphi Developer
> Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED]
> Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
> TVisualBasic = Class(None);
> GExplorer [http://www.gexperts.com/gxexplorer/] Freeware 
> Windows Explorer
> replacement. Also includes freeware delphi windows explorer 
> components.
> --------------------------------------------------------------
> ----------
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to