Here is what I use in MS SQL 2K:

DATEADD(dd, -1, GETDATE())

> -----Original Message-----
> From: webmaster [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 4:24 PM
> To: Fusebox
> Subject: SQL SERVER 2000 GETDATE() -1
> 
> 
> I hope someone out there can help me.
> 
> I'm polling my sql server 2k database for data according to the date it
> was submitted inside the database.  This is what I am currently using in
> my "where statement":
> 
> formfield <= getdate() -1
> 
> the -1 is supposed to select all data one day old using the short date
> mask in the database.  All values in the database are already in the
> mm/dd/yyyy form.
> 
> but this is not working. Does someone out there have a solution for me?
> 
> If someone wants to see this monster fusebox site, go to
> www.hotmediadeals.com
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to