ODBC Examinedatabase returns unexpected results

Just starting out? Need help? Post your questions and find answers here.
Poltergeist
User
User
Posts: 26
Joined: Fri Jul 14, 2006 10:27 pm

ODBC Examinedatabase returns unexpected results

Post by Poltergeist »

Hi,

I would like to find out which ODBC drivers are installed on my system. That should be an easy task, using the following code:

Code: Select all

UseODBCDatabase()
If ExamineDatabaseDrivers()
  While NextDatabaseDriver()
    Debug DatabaseDriverName()+":"+DatabaseDriverDescription()
  Wend
EndIf
However, this does not return the drivers, but the Data source names. DatabaseDriverName returns the name of the DSN, while DatabaseDriverDescription returns the driver which is used for the DSN. Is this the correct behaviour? Because, if so, I have to find another way to list the drivers

(using PB 5.62, 32bits)
Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ODBC Examinedatabase returns unexpected results

Post by Fred »

Yes, it's may be badly named, but drivers are DSN, which is the important info to connect to an ODBC database
Post Reply