Microsoft
Software
Hardware
Network
Question : getdate not time
Hi I have the following sql
SELECT *
FROM ErrorLogs
WHERE DateErrorReported = GETDATE()
Its supposed to select all records that have todays date, but its not working as i think its comparing the time as well as date
how do i just compare the dates and not the time?
Answer : getdate not time
SELECT *
FROM ErrorLogs
WHERE Datediff(d, DateErrorReported, GETDATE()) = 0
Random Solutions
Popup not working in IE
Server 2008 R2 - Can Connect to Server By IP, but not computer name
Design issue, storing date from /proc
SUP7203B PFC incompatibility
Problem with file name comparison in unix script
Cold fusion & SQL CFIF "if variable not present, alt query" problem
New Windows 7 workstations in existing SBS 2003 domain
acronis disk director server 10
Exchange Mail Problem
Difference between Icefaces,myfaces,richfaces
in JSF?