Usefull page for that
But it did not realy have what i wanted from it.
So the final solution was the following
to get a format like this:
2008-11-13 17:29:00
SET generated = cast( getdate() - 8 as smalldatetime)
SET generated = cast( getdate() - 8 as smalldatetime)
When you have an auto number on a table and you deletes the rows in the table you have to reset the autonumber value.
DELETE FROM tblName
DBCC CHECKIDENT (tblName,RESEED, 0)
The first lines throws all the rows in tblName away and with the second row the auto number is reset
read here more information