Get the list of ODBC data source names programmatically using Delphi You have to use SQLDataSources function from ODBC32.DLL. For example.