What's the best way to connect to a Informix database from .Net?
I'm developing a client-server application based on a legacy Informix DB which used to be connected by JDBC.
I need it, from the most important to the least:
To be fast
DB server changes not needed
No ODBC and no dependencies, other than de .Net Framework 2.0
Thanks in advance for your help.
The connections strings to use with OleDb or ADO.NET can be found here.
Take a look at this article on how to connect to an Informix database using ADO.NET.
We connect to Informix from .NET, but we do it via web services that are written in FourJ's BDL
http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.relnotes.doc/uc3/netrel.htm
See if that helps. Also, what about the built in ODBC or OLEDB drivers? Have you tried those? Those might work.
You might like to investigate OpenLink's Multi-Tier Informix driver for ADO.Net (just install everything on the client): http://uda.openlinksw.com/dotnet/mt/dotnet-informix-mt/
Related
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.
We have an emerging need to modify the schema in our Agile Data Warehouse including adding new tables. We've been able to manually connect to the ADS database using Squirrel SQL and CloudConnect.
However, we would like a way to automate this process so that we can ensure that the schema remains consistent between our development, test and production ADS instances.
We're a .NET shop and most of our code is in C#. Has anyone had any success connecting directly to ADS using .NET (C# or VB)?
I've looked at trying to use the GoodData JDBC driver but it looks like referencing a JDBC driver from .NET is not particularly straight-forward and there is not a GoodData ODBC or ADO.NET driver available.
I'd rather use something like the Vertica driver for ADO.NET available at https://my.vertica.com/vertica-client-drivers/ however, I'm not sure what to use for all of the connection properties. I've attempted to connect using the Host and Port that are returned from the DW connection endpoints API but receive the following error: "SSL Startup Failed." when using the Vertica ADO.NET driver.
Is there a way to connect to the GoodData ADS daatabase using .NET or any better approaches to modifying the ADS schema using a CloudConnect graph or REST API?
Any advice would be appreciated.
GoodData currently provides only a custom JDBC driver for connecting to ADS. Standard Vertica drivers cannot be used. See https://help.gooddata.com/display/doc/Data+Warehouse+Technology
It is not possible to use the JDBC driver in .NET for obvious reasons. Theoretically it could be possible to use a ODBC-JDBC gateway, but I have not tested this solution. Also there is JVM implementation for .NET, but I have not tested it also. It is http://www.ikvm.net/.
So the easiest way is really to use CloudConnect or a SQL client which supports JDBC drivers. For automating a process the easiest ways are probably Java or JRuby.
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
I'm developing an application on a Windows CE Platform and this application need a connection to a remote database (Sybase ASE). This remote database is on the internal network.
How can I do this?
It seems that ODBC isn't embedded in the Compact Framework...
The only one solution that I found was to develop an UNIX application that executes my SQL code and send it back to my C# application (using Socket...).
Better idea?
Thanks !
If you have access to IIS, you could create a web service and call that from your Windows CE application. This I think would be cleaner than anything you would do with raw sockets.
I don't know this for a fact, but it is very possible that the DataTable instance could be serialized and a lot of the parsing work would be done for you.
Your web method might be something like this:
DataTable ExecuteQuery(string query);
You might be able to use the ASE ADO.NET Data Provider. I believe it does work with the Compact Framework.
Just curious; doesn't Connecting to an ASA database on Windows CE documentation provide guidance for doing this on Windows CE?
I'm developing a web application with ASP.net & C# and it needs to connect to mysql database.
I'm not sure if I should use linq or OleDB to connect to mysql!!!
can you give me some advices about that?
Couple of options:
http://code2code.net/DB_Linq/
http://code.google.com/p/dblinq2007/
http://www.alinq.org
you can use either Entity Framework or NHibernate. Both support Linq.