Question : sql updating a table

Hello,
I have a 365 rows table that contains the dates from 2009-01-01 to 2009-12-31
How can I chane just the 2009 values to 2010?

Thanks

Answer : sql updating a table

update [522].MyTable set [MyDate] = (DATEADD(year, 1, [MyDate]))

Enjoy
Random Solutions  
 
programming4us programming4us