jasonsalas
IS-IT--Management
I'm TRYING to write a SPROC that will return a date-specific recordset for a collection of articles in a single DB table. For some stupid reason, when I try querying the table for a specific date it doesn't work:
SELECT * FROM table WHERE Date = '7/12/2004'
I know I have records matching the query criteria, and it works fine if I do other queries not for a precise date, like:
SELECT * FROM table WHERE Date >= '7/12/2004'
My DATE field is of type SMALLDATETIME.
Huh?
SELECT * FROM table WHERE Date = '7/12/2004'
I know I have records matching the query criteria, and it works fine if I do other queries not for a precise date, like:
SELECT * FROM table WHERE Date >= '7/12/2004'
My DATE field is of type SMALLDATETIME.
Huh?