Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
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)
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)