ODBC detection

ODBC detection

Post by Kurt Riss » Sun, 23 Feb 1997 04:00:00


  What is the easiest way to determine whether or not ODBC is available?  If I
allocate an environment handle, then a connection handle, then use SQLAlloc(),
and then whether or not I free the two handles, my application generates an
error when exiting.  Isn't there a simpler way?  I don't need to know (at this
point) whether the desired data source is present, or any details, just
whether or not to ask the user to run the ODBC Setup program...


Kurt Risser
Louisville, KY., USA..