Hi,
I am trying to retrieve a value from a datetime field. When I stored the value using visual basic it was just a blank datetime value which was stored as 12:00:00 AM . Now when I am trying to select records based on the same value it doesn't retrieve it.
ie: SELECT * FROM table WHERE datetimefield = '12:00:00 AM'
I know that is the value it has because when i use the enterprise manager to look at the data it has that stored in there. Any ideas on how I can build a select statement based on records with the 12:00:00 AM value?
Thanks,
Adam
I am trying to retrieve a value from a datetime field. When I stored the value using visual basic it was just a blank datetime value which was stored as 12:00:00 AM . Now when I am trying to select records based on the same value it doesn't retrieve it.
ie: SELECT * FROM table WHERE datetimefield = '12:00:00 AM'
I know that is the value it has because when i use the enterprise manager to look at the data it has that stored in there. Any ideas on how I can build a select statement based on records with the 12:00:00 AM value?
Thanks,
Adam