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
ASA 5505 DMZ won't Access Internet
Trim() in JavaScript using Regular Expression
Cloud Computing
How to open old tethereal pcap files?
Web Interface 5.3 PNAgent Site - Citrix Online Plug-in could not contact the server entered.
SharePoint styling broken after migration (Urgent, Screenshots attached)
a program is attempting to send the following email message on your behalf - Windows Live mail
C# 2005 how to Change the Target .NET Framework Version of an Existing Project
Best Method for Reporting on and Editing Large Amounts of Data
SQL 2008 SP1 Ghost count!