TIMESTAMP
is an internal SQL Server datatype stored as a 8-byte blob. It has nothing to do with date/time - it's just an internal counter, really.
It's actually deprecated even - use the rowversion
datatype instead (as of SQL Server 2008 and up).
From SQL Server Books online:
The SQL Server timestamp data type has
nothing to do with times or dates. SQL
Server timestamps are binary numbers
that indicate the relative sequence in
which data modifications took place in
a database. The timestamp data type
was originally implemented to support
the SQL Server recovery algorithms.
You cannot use byte array bytes in aggregates, as the error message says clearly.
I would assume there is another DATETIME
column in your table somewhere??
Check out this excellent Timestamps vs. Datetime data types article for more insights.
Marc