Proper ODBC Connection string syntax - web-config

I am trying to build a connection string to and ODBC using an IBM ODBC Driver.
This is what I currently have:
<add name="ODBCConnection"
connectionString="Driver=IBM InfoSphere Classic ODBC Driver V10.1;Server=XXXXX.XXXXXX.COM;Port=XXXX;Database=DTM;"/>
When I try to connect to my OdbcCOnnection object, it says the the connection string is wrong. Everything I see online seems to say this is the correct syntax. Any idea what is wrong? The driver name I pulled directly from the ODBC Data Source admin console.

Related

Is that possible to connect to GCP PostgreSQL via ODBC

I trying to connect to GCP Postgres. The most convenient method my environment has is an ODBC driver. Will GCP serve that type of connection?
That should work. The server doesn't know it is talking to an ODBC driver. It speaks its native protocol, it is up to the ODBC driver to interpret that.

Connected mongodb with power bi with ODBC Driver

Can you guide me about the connection between mongodb and power bi through ODBC driver. I have connection between them. but i got unexpected errors like:
"OLE DB or ODBC error: Exception from HRESULT: 0x80040E4E." , "OLE DB
or ODBC error: [DataSource.Error] ODBC: ERROR [42S22] [MySQL][ODBC
1.4(w) Driver][mysqld-5.7.12 mongosqld v2.14.3]Unknown column 'COD' in 'field list'."
and
"DataSource.Error: ODBC: ERROR [08S01] [MYSQL][ODBC 5.3(w) Driver Lost
conection to MySQL server at 'waiting for initial communication
packet', system error: 10060".
Can you tell me where the problem and how can I overcome on it?
I've had the same problem, try to go over the below steps and take a look at my advice under the fourth point (4).
Install mongosqld on your server based on your OS (first prerequisites).
LunchBI connector:
a) Make logs folder and mongosqld.log file in it.
b) Setup mongosqld.conf (IP:<your_server_ip>, PORT:3307)
Install mongosqld as a System Service link
Create a system DSN on your computer based on your OS, link.
Hint: On Windows (in ODBC data source) try to make both ANSI and UNICODE
connectors and do not forget to select a database in the dropdown menu.*
e.g. connect to Mongo via PowerBI via ODBC
a) Select a connector
b) Select the database, that you have selected in the previous dropdown menu.
For more information follow the official guide
you have to install mongosqld on your server and configure the .yalm file.
Inside it you have to uptade 'bind ip' field, by adding the remote ip.

DNS ODBC Driver configuration for SSH RDS

I´d like to know if it is possible to connect to my rds database from my local machine (windows) using windows odbc data source. My problem is that I use SSH and i don´t know how can I input the parameters in odbc data source. I need this type of connection because I want to access RDS via vba excel. My database is Postgresql.
If you have a publicly accessible database (not recommended by AWS) and your IP address is allowed, then the normal ODBC connection will work.
By the sound of your setup, you have a private database. In which case, your options are:
Use a different ODBC driver that supports tunnelling.
Devart (https://www.devart.com/odbc/postgresql/) and Cdata (https://cdn.cdata.com/help/FPG/odbc/RSBPostgresql_c_SSH.htm) both have ODBC drivers that support SSH tunnelling.
Neither are free.
Use a VPN and point your driver at localhost

Passing ssl certificates paths to PostgreSQL ODBC driver

I'm attempting to connect to a Postgres database that requires the client pass the paths to client and server SSL certificates using the ODBC driver for postgres. I'm using psqlodbc v11 x86 on Windows 10. I need to have three options passed to the ODBC driver sslrootcert, sslcert, and sslkey. I know that the paths are not being passed by the odbc driver since when I connect using the following connection string where I specify the pqopts it is able to connect.
Driver={PostgreSQL UNICODE};Server=XXXX;Port=5432;Database=XXXX;Uid=XXXX;Pwd=XXX;sslmode=verify-ca;pqopt={sslrootcert=C:\\ssl\\pgSQL.ca.cert sslcert=C:\\ssl\\pgSQL.cert sslkey=C:\\ssl\\pgSQL.key}
According to the document section
Advanced Options 3/3 Dialog Box->Libpq parameters, I should be able to pass the parameters by typing the values within the braces directly into the text box. It displays the error message saying that it cannot find the certificate because it is looking in the default location and is not using the value that was provided in the Libpq text box. Am I doing something wrong? Any advise on how to connect passing client certificates would be greatly appreciated.
Answering this in case anyone else finds this useful. The problem seems to be that the Test button on the ODBC Driver doesn't take the options set in the libpq parameters into account and just uses the default settings. When I saved the ODBC connection closed the ODBC Data Source Administrator window and used the connection from a different program it was able to connect successfully.

Connecting to PostgreSQL Data Source in SQL Server Import Export Tool

I'm trying to setup an easily-replicable (or even manual and I do it once a month or so) process for moving data from a large Azure PostgreSQL database to a more manageable Azure SQL database for end users that are most familiar with SQL Server. I've successfully connected to the PostgreSQL database via PGAdmin, so I know all my connection string info.
I started by installing the latest ODBC driver from here.
I then used a connection string which was given to me from the Azure portal, filled in the proper database name and password, and attempted to use the following drivers:
PostgreSQL ODBC Driver(UNICODE)
PostgreSQL ODBC Driver(ANSI)
I am getting the following error with either of them:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
What step am I missing in this process? Or how best can I troubleshoot this?
After more research, I attempted to add the ODBC driver here:
And got the following error (I'm not sure why Tableau is relevant to this?):
Thank you.