S
segue
I've been trying to connect to a postgressql database using oledb.
1. added a system dsn in the odbc datasource administrator
2. connected to the database using visual studio
3. used the connection string created by visual studio in the database
properties
4. maybe an odbc syntax would work?
Provider=SQLOLEDB;database=internet;server=mycompany.com;port=5432;uid=myuser;sslmode=disable;readonly=0;protocol=7.4;"
code fails at:
oleConnection = New OleDbConnection(connectionstr)
oleConnection.Open()
I get the error:
[OleDbException (0x80004005): [DBNETLIB][ConnectionOpen (Connect()).]SQL
Server does not exist or access denied.
Suggestions appreciated - thanks.
1. added a system dsn in the odbc datasource administrator
2. connected to the database using visual studio
3. used the connection string created by visual studio in the database
properties
4. maybe an odbc syntax would work?
Provider=SQLOLEDB;database=internet;server=mycompany.com;port=5432;uid=myuser;sslmode=disable;readonly=0;protocol=7.4;"
code fails at:
oleConnection = New OleDbConnection(connectionstr)
oleConnection.Open()
I get the error:
[OleDbException (0x80004005): [DBNETLIB][ConnectionOpen (Connect()).]SQL
Server does not exist or access denied.
Suggestions appreciated - thanks.