Note that there are some explanatory texts on larger screens.

plurals
  1. POSystem.Data.SQLite issue on compact Framework 3.5
    primarykey
    data
    text
    <p>I am using sqlite in my compact framework application to log the events in system. I am also using <a href="http://sqlite.phxsoftware.com/" rel="nofollow">System.Data.SQLite</a>. The event has the time stamp to describe at what time it occurred. I am storing this Time stamp as Ticks in my table. Along with this column the table contains another 5 columns of integer/text type. Below is table schema</p> <pre><code>CREATE TABLE T1 (TimeStamp INTEGER, Col2 INTEGER, Col3 INTEGER, Col4 INTEGER, Col5 INTEGER, Col6 TEXT, PRIMARY KEY(TimeStamp DESC)); </code></pre> <p>I am querying for the data between two time stamp using ADO with below query</p> <pre><code>SELECT TimeStamp,Col1,Col2,Col3,Col4,Col5 FROM T1 WHERE TimeStamp BETWEEN @startDate AND @endDate LIMIT 2000; </code></pre> <p>I am converting the Time stamp given by the user to Ticks and sending them as parameter values for '@startDate' and '@endDate'. </p> <p>After I executed above query then I start iterating over SqLiteDataReader using <strong>while loop</strong> there I found that this while loop never comes out and continue to execute endlessly. Ideally it should end after reading 2000 records. Below is code snippet.</p> <pre><code>SQLiteDataReader dr = cmd.ExecuteReader(); while(dr.Read()) { : : Fill the data from column into Event class object : } </code></pre> <p>Please let me know if anybody has faced same issue.</p> <p><strong>EDIT :-</strong> After investigation I found that this problem comes up on fully loaded system. I simulate the environment of fully loaded system and tried on it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload