Determining if MSDE is installed before the application connects

Applies to: a 2005 thread about MSDE with an MS SQL back end; no Clarion version is named.

Problem

A developer was preparing an application with an MS SQL back end for sale. Before first use it has to check whether the MSDE engine is present and, if not, offer to install it. He had no login information at that point and asked how to test for MSDE.

Solution

  1. Use the SQL-DMO COM objects, or the ODBC API call SQLBrowseConnect(), to detect other running SQL Server or MSDE servers on the network.
  2. With SQL-DMO you can also read the version of the server.
  3. With either route you can then drill down to see whether a certain database is installed on that server.
  4. A second poster said that with FM3 from CapeSoft this is easy using the supplied examples.

Caveats

  • The asker said it would take time to dig into the first route, and later answered the FM3 suggestion with "bummer", so he apparently did not have FM3. He did not report a result.
  • The thread gives no code for either route.

Today (2026)

Not re-tested. SQL-DMO belongs to old SQL Server versions, so check what your target servers still offer. The same ODBC call is used for listing servers in the hub entry on listing MS SQL servers on a network.

Sources: Scott R. (Mar 2005, the question), Jim K., Mark B. (Mar 2005) in softvelocity.clarion.databasedrivers.