Hi raz,
GetDate() returns a data and time accurate to some milli seconds. It's very unlikely you have records that match those milli seconds exactly hence you get no results.
One way to fix this is to convert the dates to a varchar and then compare both varchars. Something like this should work:
WHERE Cast(MyDate as varchar(20)) = Cast(GetDate() as varchar(20))
You may need to use Convert and a specific style instead to get both sites of the comparison in the same format.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Biscuit by
Portishead (Track 9 from the album:
Dummy)
What's This?