.net core options to connect to JDBC driver - c#

I am trying to find out options to connect to a database that is hosted on cloud (Cloud Foundry) and is available as a service. The DB is offered through JDBC driver. I am trying to write a .netcore application (fine with any framework though) to connect to the DB service.
I had referenced the .netcore options and don't find a way to connect to such services. They have provided option to connect to Azure - but, that's a SQL DB. Request for a direction to try out the options:
ODBC - Can I try ODBC - JDBC bridge option?
Oracle Managed Dataservice - Not sure if this can help for the cloud foundry option.
Should I consider moving to .NET Framework instead of .NET Core?
The DB I am trying is a relational DB.

Connecting a C# app to a JDBC (Java) data source requires a bridge of some kind, possibly multiple bridges stacked atop each other. Examples include this, with two API translations (from ADO.NET to JDBC, and from JDBC to DBMS) --
C# ADO.NET app
-> OpenLink Enterprise Edition Generic Client ADO.NET Provider
... TCP/IP ...
-> OpenLink Enterprise Edition Request Broker &
Bridge Agent for JDBC Data Sources
-> JDBC Driver
-- and this, with three API translations (from ADO.NET to ODBC, and ODBC to JDBC, and from JDBC to DBMS) --
C# ADO.NET app
-> OpenLink Lite Edition ADO.NET Provider for ODBC Data Sources
-> OpenLink Lite Edition ODBC Driver for JDBC Data Sources
-> JDBC Driver
These Bridges (Enterprise Edition ADO.NET to JDBC, Lite Edition ADO.NET to ODBC, and Lite Edition ODBC to JDBC) come from my employer, OpenLink Software. There are other options.

Related

Sphinx Search Engine + .Net : How Can I Connect to Sphinx through C#?

I installed and configured sphinx search engine (v. 2.2.11) in ubuntu and integrated it with oracle database to retrieve and index data from oracle. I also can submit query through sql client of sphinx by using command line and every thing is ok.
Now my question is: How can I connect to sphinx through C#? There is no official API for .Net.َAlthough there are several 3rd party APIs, some of them not free and some will not be updated anymore. I also saw SphinxSE that is a mysql storage engine and According to what I understood, Only used when data is stored in mysql but my data is stored in oracle and I use odbc for integrating oracle and sphinx.
So, Should I write an api myself or there may be other ways?
Thanks for any suggestion
Just use SphinxQL and connect to your Sphinx instance using any mysql library. Just make sure sphinxql is enabled in your config, you should have smth like this:
listen = 9314:mysql41
This tells Sphinx to accept connections from mysql clients on port 9314.

C# - connecting to DB2 z/os mainframe without a license

Problem:
I have a c# application that requires read and write access to DB2 z/os on mainframe.
I've searched around for weeks and came up with the conclusion: either go with IBM drivers (which requires a license file, or DB2 connect, or some sort of licensed software) or go with ole DB provider for db2 (host integration server) by Microsoft.
Microsoft option is free, just need to install the drivers, no need a license file. IBM option requires a DB2 connect software and a license (even if you use the ibm nuget package, it requires you to have the license file)
Questions:
1) can I do this for free meaning no license purchase? Aside from the Microsoft option?
2) is it possible to deploy the project to a machine without having to install any drivers? (Kinda like ibm's self contained nuget package) but you know, not requiring a license file?
Thanks in advance! P.S. the DB2 server is remote, not local
IBM-provided Db2 drivers always require proper Db2 Connect licenses to access Db2 for z/OS.
Those are not always costly, this totally depends on the environment and the requirements.
Microsoft’s drivers seem to be free, however, when using them, consider:
the potential challenges when requesting the support from IBM - they will not agree to debug driver vs database interaction issues, and Microsoft will not help you unless you pay them;
possible compatibility issues, including the lack of support for the latest functions and limited compatibility with newer Db2 fixes (even within the single major Db2 version).
If those two things are not really important for you in your specific situation, you can avoid the need to pay for Db2 Connect by using Microsoft’s drivers :-)
As cschneid suggested, it IS possible to connect a c# application (or any a .NET application) to DB2 (Version 11 and up) for z/OS on mainframe through REST services. You just end up requesting and getting responses via JSON objects. You just need to make sure that DB2 is configured to handle REST calls (especially if you're using HTTPS)

Windows embedded CE 6.0 and Odbc

I am writing an application to run on a windows embedded ce 6.0.
the application needs to have access to a sql database and insert records into it.
My boss said i have to use Odbc commands, but so far i haven't seen proof that windows embedded ce 6.0 supports Odbc at all.
Can someone confirm that for me please before I go to my boss and humiliate myself in case I am wrong :p?
and In case i cannot use Odbc: is there any alternative?
Thank you for your help.
The Compact Framework has no support for ODBC. What type of database do you need to connect with? Many (SQL Server, Oracle, MySQL, SQLite, etc) have ADO.NET Providers
Here's an example for using the SQL Server provider.
Windows CE 6.0 does not support ODBC:
http://social.msdn.microsoft.com/Forums/en/sqlce/thread/ed42734d-1594-4fe0-90ca-9e55771421af
No, there’s no such API. ODBC is not supported on CE and OLEDB driver
is not available.
... or ...
http://docs.oracle.com/html/B10100_01/wnovw.htm
Windows CE does not support the ODBC driver manager.
However, one good alternative is the CE variant of standard (VB6 era) ADO, ADOCE:
http://msdn.microsoft.com/en-us/library/ms834317.aspx

.NET DB2 OLEDB pre-requisites

I have written a Windows Forms application in C#, .NET framework 2.0, that uses System.Data.OleDb to talk to an SQL Server 2000 database, which is working fine. I now need to enhance the application to talk to an DB2 database on AS/400. Is this just a matter of configuring the connection string, or do I need additional driver software (where from) and/or references in my project?
I would like to still use OLEDB, but with DB2.
Edit: I downloaded the Microsoft OLE DB Provider but was unable to install it onto my desktop development PC because I do not have SQL Server installed. This provider seems to be only for integrating SQL Server with DB2, whereas I want to integrate a Windows Forms application with DB2. Is there a different download location for an OLE DB provider that does not require SQL Server, which I can use from a Windows desktop?
You will can use Microsoft's OLEDB for DB2 provider for this. Also the connection string will change.
Like:
Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=xxx.xxx.xxx.xxx;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema;User ID=myUsername;Password=myPassword;
Or you can use IBM's own IBM OLE DB Provider for DB2 that works without SQL Server.
You should look at Connection strings for IBM DB2 for all other providers and their configuration.

Connecting to DB2 via .NET DbConnection

Our current DB Connection provider model relies on database connectivity to use DbConnection (System.Data) based objects.
We can connect to DB2 (*Nix * Windows) via OdbcConnection, but we would like to allow the use of native DB2 Drivers.
Is there any way to do so (either .Net framework, OpenSource or (last choice) vendor) without breaking away from our current DAL model?
There is another method not mentioned in the article above, and that is to use DbNetData which simplifies database access and has the ability to connect to DB2 from .NET. The source is hosted on CodePlex below:
DbNetData

Categories

Resources