如何将VB6连接到Postgresql数据库?有没有人可以帮我解决这个问题?请帮忙。 Thaanks很多。
答案 0 :(得分:3)
引用ADO 2.8:
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.ConnectionString = "DRIVER={PostgreSQL Unicode};SERVER=ServerName;port=5432;DATABASE=Database;UID=userID;PWD=password"
'// You'll have to substitute "ServerName", "Database", "userID", and "password"
cn.ConnectionTimeout = 10
cn.Open
答案 1 :(得分:1)
您是否尝试过PostgreSQL ODBC driver?