Function SQLNumberOfDrivers(DatabaseInterface)

SQLNumberOfDrivers

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

SQLNumberOfDrivers(
     DatabaseInterface,   ! (input) an element expression
     )

Arguments

DatabaseInterface

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.

Note

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.