There are spaces introduced all over this code. Sorry I've never see this problem. I would guess it has something to do with encoding. UTF-8 vs unicode
Just to confirm please script out and post this trigger from the 2008 instance.
EDIT:
see what I mean (below)?
ALTER trigger [ dbo]. [ Ti_tuser ] on [ dbo]. [ Tuser ] for insert as
begin
declare
@ numrows int,
@ int numnull ,
@ errno int,
@ errmsg varchar (255)
select @ numrows = @ @ rowcount
if @ numrows = 0
return
vs.
ALTER trigger [dbo].[Ti_tuser] on [dbo].[Tuser] for insert as
begin
declare
@numrows int,
@int numnull ,
@errno int,
@errmsg varchar (255)
select @numrows = @@rowcount
if @numrows = 0
return
Be One with the Optimizer
TG