Windows embedded CE 6.0 and Odbc - c#

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

Related

How to generate classes in LLBLGen Pro v3 using SQL Server CE database file

Is it somehow possible to generate classes in LLBL Gen Pro 3.1 using a SQL Server CE .sdf database file? I know in LLBL v2 it was, but in v3 there is no such option when selecting database type.
Are there some workarounds for this problem?
Answer from the LLBL Gen forum (Walaa):
"You'll need to port the schema into a SQL Server database (not CE). Then use it to create the llblgen project. The generated code can be easily used against the CE database, changing the connection string. "

Can share a SQL Compact Edition 3.5 database?

I made an application with SQL Compact Edition 3.5 to be used from many user but in the test I got can't connect to databse after the first one how connected !
this is an erreur in my application or probleme with many connexion in SDF file ?
and what about Compact Edition 3.5 accept 256 connexion!
Depending on how your application behaves, you might be able to replace SQL Compact with SQLite. It can really only handle one write at a time but can handle multiple simultaneous reads. Anything more than that and you should be looking at a real SQL server.
You should look at a Microsoft Locking in SQL Server CE. In a nutshell, it says multi users/application can concurrently access the SDF at the same time provided the database is not locked in a transaction.
Also, I like to mentioned that we also do not have multi user/application access to a SQL Server CE 3.1 file on a network drive. (This constraint may still be true for SQL Server CE 3.5). If you're being affected by this, you will have to ensure your SDF is being opened using a local drive reference.

.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.

Is SQL Server Compact Edition Serverless?

Is SQL Server Compact Edition Serverless?
I mean, If I have a Northwind.sdf file in some pc without SQL server installed, can my application still use that?
Is it the same with SQLITE?
Correct.
Both of these databases do not have servers and do not require any installation for end-user.
All you need to do is include the appropriate DLL file
Answer of SLaks + Yes, SQLite is an embedded database too.
SQLite features: SQLite doesn't support RIGHT or OUTER JOIN's, complete ALTER TABLE. See http://www.sqlite.org/omitted.html.

Connecting to Informix database from .Net

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/

Categories

Resources