I have SQL 2000. I have a field in a table that is data type CHAR. But the data in that field is really time. I can't change the field. But I need to do a mass adjustment so I am trying to convert the field to time make my change then convert it back. This is the query I am using:
Update raw_clocking set [TIME] = convert((Convert([Time],datetime)-1),char) where [date]='04/04/05' and [time]<'09:00'
But when I run it I get the following error:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '('.
Could someone please tell me what is wrong with my query?
C. Johnson
Update raw_clocking set [TIME] = convert((Convert([Time],datetime)-1),char) where [date]='04/04/05' and [time]<'09:00'
But when I run it I get the following error:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '('.
Could someone please tell me what is wrong with my query?
C. Johnson