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
How to connect to network printer linux
asp.net I have a sqldatasource select witha a where that searches between dates
Remote Web Workplace in Server 2008?
How to bounce a database which hs RAC, OEM, ASM and dataguard
SSIS and variable issues
MS Access 2007 -- Using Like with Left Join
Outlook 2007 delete cross out message instead of deleting
Setting up a VPN IPsec Tunnel
office 2007 settings not saved in user profile in terminal server
htaccess 302 redirect - seamless hidden url