Microsoft
Software
Hardware
Network
Question : How to Query a timestamped field (smalldatetime) for yesterdays date in a where clause?
Which function is best for querying yesterday's date from a timestamped field (smalldatetime)?
For example:
select *
from securitymoneyactivity
where uploaddate = Datepart? DateDiff? or DateADD? etc....
---UploadDate being the timestamped field
I need a "GetDate() -1" return on my results.
Answer : How to Query a timestamped field (smalldatetime) for yesterdays date in a where clause?
select * from securritymoenyactivity where datediff(day,uploaddate,ge
tdate())=1
http://msdn.microsoft.com/
en-us/libr
ary/ms1897
94.aspx
Random Solutions
Redundant .msi files created by Windows Installer.
Files scp'ed from Unix servers to Win XP (running WinSSHD V5 ) could not be deleted on the PC
Copy Entire Row and Paste into a new Worksheet Excel VBA
Wyse FTP Config
How to generate an HTML file if I've got the HTML body?
ASP.NET Membership minRequiredNonalphanumeric
Characters
Problem
Would you recommend Draytek Vigor 2820 for site-to-site VPN
xml to array
Group policy updates causes screen to flicker
Windows 2003 Server Restart Errors