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
Iterating through a PDF file (stepping through) for validation purposes
Crystal report 2008, draw graph with huge of data.
Windows7 my Documents folder
Web server in DMZ to access SQL server on INSIDE
Problem with windows Server 2003
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
How to parse XML string in Oracle procedure ?
Microsoft SharePoint Foundation search server option is grayed out.
Serialization in MFC
can't find Printer Setup Utility in Mac OS X 10.5.8