Retrieving Data About SQL
When you are logged on, much information about the database can be retrieved, including, for example, the type of driver or the data types that are supported by the underlying database server. Here are a few examples:
SQLDataSources This function returns a list of data sources accessible by the program. The window shown in Figure may have been created with this function.
SQLDrivers This function returns a list of drivers accessible by the program. This could be the same list as in Figure.
SQLGetInfo This function returns general information about the driver and the data source to which the database handle is linked.
SQLGetFunctions This function returns information about which ODBC functions are supported by a specific driver.
SQLGetTypeInfo This function returns information about which SQL data types are supported by the data source.