Hi all.
I'm testing my C# application on the SqlServer CE 3.1. The sdf file is in
the Secure Digital.
When i want to query the database i make a new Sqlceconnection Object, then
i Open,Close and dispose that.
In the remote performance monitor i see (correctly) a big number of
SqlCeconnection Objects that is expecting Garbage collector. (In fact when
garbage collector runs the instancies of SqlCe disappear from the list of
the Remote performance monitor).
I see also a number of the FlushFailureEvantHandler instancies. This number
is the same of the SqlCeConnection instancies. (Also these instancies are
collected when Garbage Collector runs)
Why there is the FlushFailureEventHandler instancies? What is their meaning?
Another question:
The connection string of my SqlCeConnection objects don't have the flush
interval parameter so the default is 10 seconds. If i have the sdf on the
Secure Digital and my pocket go in suspend mode during the flush event there
is the possibility of the database corruption?
Is a good idea set the flush interval parameter at the minimum value (1
second)?
Thanks in advance.
Simon.
ErikEJ - 24 Sep 2007 16:21 GMT
FlushFailure occurs when the Flush fails!
http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceconnection
.flushfailure.aspx
Subscribing to this event allows you to handle a flush failure. Lowering the
flush interval will affect performance but increase data integrity - so it
will be a tradeoff based on your data access pattern and application
requirements.

Signature
Erik Ejlskov Jensen, Mobile App Dev MCTS
Check out my SQL Compact blog at
http://erikej.blogspot.com
> Hi all.
>
[quoted text clipped - 25 lines]
>
> Simon.