Alarm filtering by DB query
Posted: Tue Jan 08, 2013 12:40 am
Hello,
what would be proper syntax for querying ActiveTime column (datetime) from AlarmServer table (Database.sdf)?
I have datetime format like 8.12.2013 8:26:26.
This is ok and works:
DatabaseViewer1.SendSelectQuery("Select * from AlarmServer", "Database.sdf");
This for example fails.. It just doesn't return anything, althought I have alarms in DB within those dates.
DatabaseViewer1.SendSelectQuery("Select * from AlarmServer where ActiveTime > 5.1.2013 00:00:00", "Database.sdf");
Thanks!
what would be proper syntax for querying ActiveTime column (datetime) from AlarmServer table (Database.sdf)?
I have datetime format like 8.12.2013 8:26:26.
This is ok and works:
DatabaseViewer1.SendSelectQuery("Select * from AlarmServer", "Database.sdf");
This for example fails.. It just doesn't return anything, althought I have alarms in DB within those dates.
DatabaseViewer1.SendSelectQuery("Select * from AlarmServer where ActiveTime > 5.1.2013 00:00:00", "Database.sdf");
Thanks!