Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 DateAdded function

Author  Topic 

nt4vn
Yak Posting Veteran

98 Posts

Posted - 2009-01-27 : 08:35:36
Please look at my below statement to figure out why I am getting syntax error for "DateAdded" function.

b.dateCaptured Between DateAdd("d",-4, a.dt_assignment) And DateAdd("d",3, a.DT_Assignment)

Thank you,

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-27 : 08:38:12
it should be

b.dateCaptured Between DateAdd(dd,-4, a.dt_assignment) And DateAdd(dd,3, a.DT_Assignment)

Go to Top of Page

nt4vn
Yak Posting Veteran

98 Posts

Posted - 2009-01-27 : 08:40:58
quote:
Originally posted by visakh16

it should be

b.dateCaptured Between DateAdd(dd,-4, a.dt_assignment) And DateAdd(dd,3, a.DT_Assignment)





Thank you Visakh16! It worked perfectly....
Go to Top of Page
   

- Advertisement -