Re: SQL Server CE vs. DataTable
- From: "Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 13:26:29 -0400
Shloma,
The notification you want is part of Windows Mobile 5.0, but it isn't
available before that. When the OS wants to close your app, it sends a
WM_CLOSE message, you can put some code in your OnClosing event handler. But
honestly, if you really care about saving your data, I'd recommend writing
it out to persistent storage as it's collected. If you have a lot of data,
then SQL Mobile is a great choice. If you only have a little and you're just
adding records and not changing them, you can add them to a file in a custom
format perhaps based on CSV.
--
Ginny Caughey
..NET Compact Framework MVP
"Shloma Baum" <shlomabaum-spam@xxxxxxxxx> wrote in message
news:OfXGKt2wFHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
> Ginny,
>
> I'm new to the CF, however I'm also wondring if I should go with SQL
> Mobile or DataTable, but about what you mention isn't there a way to raise
> an event that when when the machine for instance gets to a specific
> percent of battary usage it should save the dataset to disk?, and the same
> when you do a reset?
>
> Thanks in advance
> Shloma
>
>
> "Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> wrote in
> message news:emtde2twFHA.3400@xxxxxxxxxxxxxxxxxxxxxxx
>> If you truly don't care if you lose the data if your app ends or the
>> device gets reset, then there's no need to store it elsewhere, but are
>> you really, really sure you don't care?
>>
>> Ginny Caughey
>> .NET Compact Framework MVP
>>
>> "blue_nirvana" <bluenirvana@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:409647D1-0A0B-43D0-A883-05A597113495@xxxxxxxxxxxxxxxx
>>> Is there any benefit of using SQL Server CE for data storage rather than
>>> simply using a dataset? I'm simply getting some data from a SQL Server
>>> and
>>> will be using this data to verify data that will be scanned with the
>>> wireless
>>> scanner. I'm thinking that since I do not care if the data is lost if
>>> the
>>> program is terminated, then I do not need to keep it in SQL Server CE
>>> and can
>>> easily use a dataset. Is this an OK way of doing this?
>>
>>
>
>
.
- References:
- Re: SQL Server CE vs. DataTable
- From: Ginny Caughey [MVP]
- Re: SQL Server CE vs. DataTable
- From: Shloma Baum
- Re: SQL Server CE vs. DataTable
- Prev by Date: Re: how do i use the sql mobile resultsetview to set column names for a bound data grid?
- Next by Date: SQL server CE licensing question
- Previous by thread: Re: SQL Server CE vs. DataTable
- Next by thread: SqlCE message 27750
- Index(es):
Relevant Pages
|