declare tb cursor local for
select s='alter table ['+a.name+'] drop column ['+b.name+']'
from sysobjects a
join syscolumns b on a.id=b.id
join systypes c on b.xtype=c.xusertype
where c.name='timestamp'
declare @s varchar(8000)
open tb
fetch next from tb into @s
while @@fetch_status=0
begin
exec(@s)
fetch next from tb into @s
end
close tb
deallocate tb