Iam using MyGeneration Doodads to connect to MySql DB
i connect using microsoft ole db provider for odbc drivers but get the following error
[System.ArgumentException] - The .Net Framework Data Provider for
OLEDB (System.Data.OleDb) does not support the Microsoft OLE DB
Provider for ODBC Drivers (MSDASQL). Use the .Net Framework Data
Provider for ODBC (System.Data.Odbc).
how can i solve this problem
Related
I know that there is POCO Generator but that's for SQL Server and I need it for an Informix database.
Can you point me to any alternative?
BTW I am using an Informix data server driver in C# to connect to an Informix server.
You could use LINQ to DB, which support couples of databases such as Informix:
Supported databases:
DB2 (LUW, z/OS)
Firebird
Informix
Microsoft Access
Microsoft Sql Azure
Microsoft Sql Server
Microsoft SqlCe
MySql
Oracle
PostgreSQL
SQLite
SAP HANA
Sybase ASE
I hope to be helpful for you:)
What is the difference between driver and provider in database? Is there are any explanation will be grateful.
sample : ADO.NET driver for MySQL vs providerName="System.Data.EntityClient"
From the MSDN Forum:
Driver is a program installed on a workstation or a server; it allows programs to interact with a Database Management System (DBMS). Such as, JDBC driver provides database connectivity through the standard JDBC application program interface (APIs) available in J2EE.
A data provider is a set of libraries that is used to communicate with data source. Such as, SQL data provider for SQL, Oracle data provider for Oracle, OLE DB data provider for access, excel and MySQL. It serves as a bridge between an application and a data source and is used to retrieve data from a data source and to reconcile changes to that data back to the data source.
Source: MSDN-Forum
Provider is a connectivity with particular database like Sql Server, Oracle, but we import namespaces like using system.data.msdaora, using system.data.sqlclient.
After write connection class it takes string connection string takes 4 statements uid, pwd, database, server.
After open connection by using cn.Open method.
After executing statements.
After connection close.
I am trying to use ADO.NET Entity DATA model (edmx) to connect to Oracle, i have installed the Oracle data provider from Oracle.
But i do not see the data provider as an option when i try to add a new connection for the ADO entity data model.
However I can see the Oracle data provider when i am trying to connect to the DB using from the sever explorer in VS 2010.
Any ideas ?
i had to install this beta version to get it to work. http://www.oracle.com/technetwork/topics/dotnet/downloads/oracleefbeta-302521.html
What is the data provider for nhibernate? Is it ADO.NET?
Yes it uses ADO.NET internally.
Take a look at http://community.jboss.org/wiki/DatabasesSupportedByNHibernate.
It shows what tools/drivers are used to connect to different databases. for example:
Oracle 9i and 10g are supported, both using Microsoft driver (System.Data.OracleClient) and using Oracle driver (Oracle.Data.OracleClient).
Or:
To work with Firebird, install the latest Firebird .NET Data Provider.
I'm not sure whether it uses ADO.Net for SQL Server connections under the hood, But it seems that it doesn't use ADO.Net for other database systems.
I am trying to figure out what is the best way to connect an (existing) ASP.Net application to an Oracle database to read its dictionary information.
There are simply too many possibilities:
MS Data Provider for Oracle (requires 8.1.7, namespace System.Data.OracleClient)
Oracle Data Provider for .NET (requires 9.2, namespace Oracle.DataAccess)
Oracle Provider for OLE DB
MSDASQL and ODBC
As my current app uses MSSQL server, further options would be:
Linked Server, access via server..user.object
Linked Server via OPENROWSET
There are a couple of questions on similar topics on SO, but only some have accepted answers.
What's your experience with each of the drivers? What are their pros and cons?
Of course Oracle is recommending ODP.Net. Is the requirement of version 9.2 (or higher) a problem today?
I too recommend ODP.NET. Choose the latest provider (http://www.oracle.com/technology/tech/windows/odpnet/index.html). It can connect with an Oracle 9.2 database or a newer release of the database.
The MS Data Provider for Oracle is very limited. You can't work with arrays for example and user defined types. And why would Microsoft provide good support for connecting to Oracle?
You can also check out the provider of devart: http://www.devart.com/dotconnect/oracle/ . It supports the entity framework.
Dump OLE DB and ODBC options, if you have direct data access provider there is no need in using OLE DB or ODBC.
I recommend Oracle Data Provider for .NET.
Microsoft just announced it is deprecating System.Data.OracleClient.
I think that leaves you with a few choices (at least):
ODP.NET (free, from Oracle)
DevArt
DataDirect
DevArt also has a LINQ to Oracle implementation which could be interesting to you.