Does ADO work with ODBC drivers or only with OLE DB providers?

I am trying to create some VBA code to automate the creation of a dashboard in a PostgreSQL database. I heard that the OLE DB driver is unreliable, and it looks like it was not affected after a few years. Does ADO work with the ODBC driver?

+1
vba excel-vba postgresql excel ado
source share
1 answer

Yes, just specify a DSN:

oConn.Open "DSN=mySystemDSN;" & _ "Uid=myUsername;" & _ "Pwd=myPassword" 
+1
source share

All Articles