Oh blimey, you're kidding me Tara. The expires was in the WHERE? Yah ... you're right<sigh>OK, start again :-(Sorry frogoth.So, you want to select everything "today" and update its status.SQL Server has a datetime datatype. This is a pain for this, because it inherently includes TIME (unless you explicitly create "expires" columns with dates at "midnight")So you probably need to do something like:UPDATE myLogSET status = 'Expired'WHERE (expires >= '02-Aug-2005' AND expires < '03-Aug-2005')AND status = 'Valid'And to do that dynamically, using "Todays date" is a proper piece of tautology:UPDATE myLogSET status = 'Expired'WHERE expires >= DATEADD(Day, DATEDIFF(Day, 0, GetDate()), 0) AND expires < DATEADD(Day, DATEDIFF(Day, 0, GetDate())+1, 0) AND status = 'Valid'
Kristen