select @tmpid=id from dbo.ActivityPlayers where <a href="mailto:id=@id">id=@id</a>
print @tmpid
if @tmpid =-1
begin
insert into dbo.ActivityPlayers (id) values(@id)
end
set @temp=CONVERT(varbinary(500),@content)
set @sql='update dbo.ActivityPlayers set <a href="mailto:'+@gamename+'='+CONVERT(varchar(1000">'+@gamename+'='+CONVERT(varchar(1000</a>), @temp)+' where id='+convert(varchar(20),@id)