Re: SQL CE basics
- From: "Ginny Caughey MVP" <ginny.caughey.online@xxxxxxxxxxxxxx>
- Date: Mon, 13 Oct 2008 09:29:45 -0400
Oliver,
You can just copy the sdf file, or you can create one on the fly - it's your choice. I agree that SQL CE is a good choice when you have 10000 rows to manage, and it supports access my multiple concurrent processes as long as they are all on the same machine.
Here's a good source of info for native code developers: http://nativemobile.blogspot.com/feeds/posts/default?alt=rss
Also check out Books Online: http://www.microsoft.com/sql/editions/compact/downloads.mspx
--
Ginny Caughey
Device Application Development MVP
"Oliver Schenk" <oliver.schenk@xxxxxx> wrote in message news:OIIt6vSLJHA.3808@xxxxxxxxxxxxxxxxxxxxxxx
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: Laxmi Narsimha Rao Oruganti
- Re: SQL CE basics
- References:
- SQL CE basics
- From: Oliver Schenk
- SQL CE basics
- Prev by Date: SQL CE basics
- Next by Date: Re: SQL CE basics
- Previous by thread: SQL CE basics
- Next by thread: Re: SQL CE basics
- Index(es):
Relevant Pages
|