I tried to connect using PostgreSQL ODBC(psqlODBC 12.0) without the driver installed on Windows x64.
I placed all the files below in a directory. They were extracted from a MSI file.
libcrypto-1_1-x64.dll
libpq.dll
libssl-1_1-x64.dll
msvcp140.dll
pgenlist.dll
pgenlist.pdb
pgenlista.dll
pgenlista.pdb
pgxalib.dll
psqlodbc30a.dll
psqlodbc30a.pdb
psqlodbc35w.dll
psqlodbc35w.pdb
vcruntime140.dll
The connection string is as follows.
"DRIVER=C:\\tmp\\psqlodbc35w.dll;SERVER=localhost;Port=5432;Database=dbname;Uid=user;Pwd=password;"
But that didn't work. The error message is
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
According to this question(Connect ODBC without driver installed), it seems possible to specify a driver DLL path instead of a driver name. Do I overlook anything?