Windows CE Object Store

Post Reply
Randal
Posts: 261
Joined: Mon Oct 24, 2005 8:04 pm

Windows CE Object Store

Post by Randal »

All,

Is there anyway to get data from a .dbf into a Windows CE Object Store? Or is there anyway to use ADOCE on the Pocket PC? (Object Store is where Windows Mobile stores database files)

If I can get data from the .dbf into the object store I can use a 3rd party report writer for the handheld that will work with any ir or bluetooth enabled printer.

Thanks,
Randal Ferguson
User avatar
Antonio Linares
Site Admin
Posts: 42519
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Post by Antonio Linares »

Randal,

Do you have more info about the "Object store" ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
modicr
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia
Contact:

Post by modicr »

Hello!

I found this information:
http://blogs.msdn.com/ce_base/archive/2 ... s_EDB.aspx
CEDB was created as a lightweight database API for Windows CE. A long time back, before I started at Microsoft, maybe the CE 2.0 days or even earlier. It originally ONLY stored its data in the object store. But then as flash got cheaper and people started building more devices with persistent storage, we needed a database that could store its data in other places. So some APIs were added to CEDB, to let it store its databases inside a "volume" (file) on any store. However CEDB was really built to operate on a RAM-based store, does not work efficiently for storing data in slower media like flash. It can end up writing to flash much more than you'd really want.

As CEDB started showing its age, the SQL team took up the challenge of providing a better database engine for Windows CE. We had SQL-CE but that was much heavier weight than CEDB. The SQL team built a lighter engine, and put an API on top of it that closely mimicked the CEDB APIs. That makes it easier to migrate existing applications that use CEDB over to use EDB. EDB is much more efficient about storing its data (and it better be, considering it was written by database experts instead of device hacks like myself).

For now Windows CE and Windows Mobile support both CEDB and EDB, but over time we'd like to get rid of CEDB.

Unfortunately there aren't any tools to convert your code from using CEDB APIs to using EDB APIs, or to convert your existing CEDB databases to EDB. Maybe someone could update our database conversion wizard (http://www.microsoft.com/windowsmobile/ ... rtoys.mspx) to do that. But to be honest I'm not aware of any effort to do that.


Roman
© I'm not patented!
Randal
Posts: 261
Joined: Mon Oct 24, 2005 8:04 pm

Post by Randal »

Post Reply