SQL CE basics
- From: Oliver Schenk <oliver.schenk@xxxxxx>
- Date: Mon, 13 Oct 2008 20:05:31 +0800
Hi All,
I am not new to SQL and using SQL queries, however I am new to Windows CE and using SQLCE 3.5. I have so far managed to install it and I can add it to my operating system using platform builder and the component catalog.
I have read a few things in the online books but nothing really provides any clear examples with native win32 code. I'm struggling to find sources that explain:
1. Can I just copy an .sdf file to the device? Or is it .mdf? Or do I create one on the fly from my program.
2. Opening/closing a database.
3. Reading/writing queries to the database.
I tried including:
#include <sqlce_oledb.h>
#include <sqlce_err.h>
but compile complains that it cannot find sqlce_oledb.h. Not sure what I have to do to get the compiler to find the .h file.
Basically I'm just looking for a "getting started" guide for SQL CE 3.5 and native Win32 programming.
I actually intend to access the database from real-time programs, but I need around 10000 data points so someone suggested using SQL CE instead of CEDB or EDB. Does that sound suitable or not?
All I really need to store is 10000 booleans and 10000 ints, maybe I should just use an array? But the problem is it may be accessed by multiple processes at the same time...and it needs to survive a power cycle. I guess I could routinely write everything to a simple txt file.
I'm very new to Windows native so bit of a steep learning curve there. Not sure what the "preferred" way of doing things is.
Thanks
.
- Follow-Ups:
- Re: SQL CE basics
- From: William Vaughn \(MVP\)
- Re: SQL CE basics
- From: Ginny Caughey MVP
- Re: SQL CE basics
- Prev by Date: Re: Possible to connect from PC to Pocket PC SQL CE?
- Next by Date: Re: SQL CE basics
- Previous by thread: Possible to connect from PC to Pocket PC SQL CE?
- Next by thread: Re: SQL CE basics
- Index(es):
Relevant Pages
|