Have you ever needed to get a list of SQL Servers on an NT domain, like the SQL Service Manager does in SQL Server 6.0, 6.5, and 7.0? You can use the code in basServerList to return a comma-delimited list of servers. Note that it will only retrieve the list of servers from the current NT domain; there is no way to retrieve the names of other servers in trusted domains using this not entirely documented use of the ODBC API.