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
LinqDataSource Benefits
Most Efficient Way Of Appending to a Byte[]
Detect Session State TimeOut
excel vba script needed
Boot Acer Ferrari 1200 laptop from dvd to upgrade vista to windows 7
Javascript form validation problems
iPhone 4 in the USA
export the sas dataset to create a table in my sql database
Change Mailbox Alias
how can i get a list of client inbox rules through powershell