Time data in query condition

voiD

Registered User.
Local time
Tomorrow, 00:52
Joined
Sep 9, 2005
Messages
37
Hello,

I've faced a - for me - tricky problem when I've created a query from code. I have an MS SQL backend and in it there is a table which has a long time format field. I want to make an sql query where the condition is a time data. Unfortunately when I enter a time which is surely in the table, there is no result of the query. I've tried to solve it on several ways, time formatting, etc., but I had always the same result, to wit no result.
Does anyone idea, how could I solve it?
Any tips are appreciated very much!

Many thanks in advance!
VoiD:confused:
 
Hello,

I've faced a - for me - tricky problem when I've created a query from code. I have an MS SQL backend and in it there is a table which has a long time format field. I want to make an sql query where the condition is a time data. Unfortunately when I enter a time which is surely in the table, there is no result of the query. I've tried to solve it on several ways, time formatting, etc., but I had always the same result, to wit no result.
Does anyone idea, how could I solve it?
Any tips are appreciated very much!

Many thanks in advance!
VoiD:confused:

Since I haven't seen your query or data, I 'm guessing the issue has to do with datatype. Date versus string.
 

Users who are viewing this thread

Back
Top Bottom