For CDaoRecordset I try to call:
Open(dbOpenDynaset,"SELECT adresa,objekt,typ,stanice,cesta,hodnota,cas,user,ip FROM Povely WHERE (cas>'2016-10-14 8:22:41') ORDER BY cas ASC;")
but it throws exception (try/catch dosn't catched it).
If I try the same "select string" in SQL manager, it's correct.
If I call string without WHERE clausule, or I type WHERE ('cas'>'2016-10-14 8:22:41'), it's ok.
Open(dbOpenDynaset,"SELECT adresa,objekt,typ,stanice,cesta,hodnota,cas,user,ip FROM Povely WHERE (cas>'2016-10-14 8:22:41') ORDER BY cas ASC;")
There is some problem with datetime column "cas". But I need to use comparation with "cas" column.
Could someone advise how to fix the problem?
Open(dbOpenDynaset,"SELECT adresa,objekt,typ,stanice,cesta,hodnota,cas,user,ip FROM Povely WHERE (cas>'2016-10-14 8:22:41') ORDER BY cas ASC;")
but it throws exception (try/catch dosn't catched it).
If I try the same "select string" in SQL manager, it's correct.
If I call string without WHERE clausule, or I type WHERE ('cas'>'2016-10-14 8:22:41'), it's ok.
Open(dbOpenDynaset,"SELECT adresa,objekt,typ,stanice,cesta,hodnota,cas,user,ip FROM Povely WHERE (cas>'2016-10-14 8:22:41') ORDER BY cas ASC;")
There is some problem with datetime column "cas". But I need to use comparation with "cas" column.
Could someone advise how to fix the problem?