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
Deleted Active Directory Administrator account
put disclaimer footer on exchange server 2003
Looking for IP and Mac addresses for all devices on network
mstsc rdpfile published on citrix
ALT text in Firefox
Developing Web Services
Calculating linear regression by Java code as done in Microsoft Excel
sql server smtp port
Printer Migration from Windows 2003 to Windows 2008 R2
Sharepoint 2010 and default IIS