How to use ODBC to connect to any DBMS - odbc

I'm developping a java application and i'm using JDBC to connect to MySQL Database, now i want to use ODBC to be able to get and retrieve data from any DBMS, of course if have access to it. Is there an API or tool to do this ?

What you are looking for is a JDBC-ODBC bridge. There are several available. It is not recommended, instead you should always use a native JDBC driver.

Related

Library to connect Rstudio to MemSQL Database

Is the library needed to connect to a MemSQL database the same as the one used for MySQL?
Would the library(RMySQL) work to establish this connection?
Yes, in general you can connect to MemSQL using the same client libraries as for MySQL. Try it out and ask if you run into any problems.
Nothing directly about Rstudio, but there are many examples of how to connect to MemSQL with various clients at https://docs.memsql.com/tutorials/v6.0/how-to-connect-to-memsql.

Connection to Google Bigtable in Google Dataproc using HBase odbc driver

Has anyone already made a connection to Google Bigtable in Google Cloud Dataproc using any available HBase odbc driver? If yes, can you tell which ODBC you've used? Thanks
As noted by Solomon in the comments, we don't have a native ODBC or JDBC driver for Google Cloud Bigtable. If you're building a .NET application and want to interact with Bigtable we recommend using the native client here:
https://github.com/GoogleCloudPlatform/google-cloud-dotnet
Another approach that may work would be to use BigQuery which does have ODBC support and combine that with BigQuery's support for federated data access to Bigtable. That's a bit of a Rube Goldberg construction though, so it may be more painful to set up and debug.

Progress DB 4GL and ODBC data extract

I am trying to connect to Progress DB 4GL to extract data using ODBC (Qlikview).
Is is possible to extract data using 4GL via ODBC?
Can you please guide me on this?
Thanks and Regards,
Silambarasan
You can use the included ODBC driver but that uses SQL syntax, not ABL (4GL) queries.
Progress Datadirect has a product that offers an ODBC frontend for OpenEdge Appserver https://documentation.progress.com/output/DataDirect/openaccessbooks/oaoeguide.pdf
http://acorn.ro/products/abl-jdbc/ offers a jdbc interface to ABL code.
ODBC clients talk SQL, not 4GL.
To use the 4GL to extract data you use either a "self service" (shared memory) connection if you are on the same host as the server, or you can use a "client networking" license if you are on a network connected computer.
You could, of course, go through all sorts of convoluted stuff to use the 4GL without an actual db connection and a series of intermediate layers to somehow get an ODBC data connection. (You could, for instance, use sockets to communicate with a C# app that uses ODBC to connect to Progress...) But the specifics would depend on what you have available, what your coding skills are and why you are trying to do this.
If you were to manage to cobble together something like that you would still have the problem that the ODBC connection speaks SQL. So if you are expecting features like 4GL index selection or triggers or "variable width data everywhere" to work you are going to be out of luck. The SQL interface is ignorant of those things and won't be able to provide them.
I'm pretty sure that Clikview doesn't talk 4GL at all -- so you would also have to convert from 4GL back to SQL again. The whole thing makes no real sense.
(Regarding "why" I can only imagine that you are attempting to bypass a licensing requirement. If that is the case then you are not only making this much, much more difficult than it needs to be but you are also not going to solve the licensing problem. The license doesn't care what technologies and products are, or are not, used to make connections.)
As far as I know, you can use the Progress SQL92 interface via ODBC to access 4GL tables (CRUD for records), but you cannot create or amend 4GL tables using SQL92.
Any tables you create using SQL92 CREATE TABLE command, cannot be seen by 4GL/ABL programs.
The Progress website says that the Progress ODBC driver is included in the Progress/Openedge client package.

HCatalog & Impala itegration

Is there a way to use WebHcat to submit Impala queries?
As far as I understand, Impala uses same metastore as Hive and HCatalog give unified access to this metastore.
Unfortunately Impala queries are submitted to a different service endpoint than Hive queries, so you can't use WebHCat to submit queries to Impala.
If you're curious, here's a bit more information about how to submit queries to Impala. First, read the Impala Concepts and Architecture documentation. As you now know, you can submit your query to any node running the impalad daemon. The interface exposed by this daemon is specified in ImpalaService.thrift. There are a number of open source clients that have been implemented that will allow you to submit queries to Impala from the command line, from a web interface, or from a library in your favorite programming language. Here are a few examples:
impala-shell: command-line interface that ships with Impala
Impala app in Cloudera Hue: web interface
impyla: Python library
impala-ruby: Ruby library
php-impala: PHP library
ImpalaSharp: C# library
impala-java-client: Java library

LoadRunner recording on ODBC protocol for sybase?

I am trying to record datasource for sybase server, I am using ODBC protocol but the problem is once VuGen launch the application for recording nothing is coming up I mean VuGen is not able to record. I am selecting Rapid SQL.exe file. For ODBC do I need to select any other file??
Architecturally, how do you know that the application is using ODBC for connectivity and it's using the "right version" of ODBC? You may need another method.

Resources