Add this at the after initialization the procedure of _AddLogChar:Quote:
Help
Code:Msg 137, Level 15, State 1, Procedure _AddLogChar, Line 89 Must declare the scalar variable "@CharName16". Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 90 Must declare the scalar variable "@CharName16". Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 92 Must declare the scalar variable "@CharName16". Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 96 Must declare the scalar variable "@CharName16".Msg 137, Level 15, State 1, Procedure _AddLogChar, Line 89 Must declare the scalar variable "@CharName16". Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 90 Must declare the scalar variable "@CharName16". Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 92 Must declare the scalar variable "@CharName16". Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 96 Must declare the scalar variable "@CharName16".
Code:
declare @CharName16 varchar(64) = (select CharName16 from [SRO_VT_SHARD].[dbo].[_Char] where CharID = @CharID)