tags:

views:

33

answers:

2

Could anyone advice me on how I could run an UPDATE statement in SQL Server to take a number of given DATETIME fields and deduct two months from them?

+5  A: 
UPDATE YourTable
SET DateField1 = DATEADD(mm, -2, DateField1)
WHERE .....
AdaTheDev
+2  A: 

use DATEADD with first argument as 'm' or 'mm' and second as '-2' and third one being your date

Sachin Shanbhag