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

后端 未结 1 888
别跟我提以往
别跟我提以往 2021-01-23 11:31

I am trying to create some VBA code to automate dashboard creation against a PostgreSQL database. I have heard the OLE DB driver is unreliable and it looks like it hasn\'t been

相关标签:
1条回答
  • 2021-01-23 11:59

    Yes, simply reference the DSN:

    oConn.Open "DSN=mySystemDSN;" & _ 
               "Uid=myUsername;" & _ 
               "Pwd=myPassword"
    
    0 讨论(0)
提交回复
热议问题