Function SQLNumberOfDrivers(DatabaseInterface)


With the function SQLNumberOfDrivers you can determine the number of installed ODBC drivers on your system.

     DatabaseInterface,   ! (input) an element expression



Element value into the set AllDatabaseInterfaces. Currently, this set contains only the value 'ODBC'.

Return Value

The function returns the number of installed ODBC drivers on your system (using 'ODBC' as argument). In case none are installed, the value 0 is returned. In case of an error, -1 is returned.


This function should be used in combination with the function SQLDriverName, to determine all ODBC drivers installed on your system.

See also

The functions SQLDriverName and SQLCreateConnectionString.