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
vbscript create shortcut script, not completing script, no errors, code attached
sms gateway in asp.net
SQL Encryption Key Error - SQL 2005
Walkie-Talkie recommendations
Best way to handle vanity urls in IIS?
Blackberry browser 400 error - socketexception Connection reset
Google Analytics
backup exec 2010 on esxi
Services Do Not Start Automatically
HP Laptop w/ Vista freezing regularly