i'm getting this error, can anyone help?
Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 46
Must declare the scalar variable "@charname".
Msg 102, Level 15, State 1, Procedure _AddLogChar, Line 46
Incorrect syntax near '='.
Msg 102, Level 15, State 1, Procedure _AddLogChar, Line 46
Incorrect syntax near '='.
Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 48
Must declare the scalar variable "@charname".
Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 46
Must declare the scalar variable "@charname".
Msg 102, Level 15, State 1, Procedure _AddLogChar, Line 46
Incorrect syntax near '='.
Msg 102, Level 15, State 1, Procedure _AddLogChar, Line 46
Incorrect syntax near '='.
Msg 137, Level 15, State 2, Procedure _AddLogChar, Line 48
Must declare the scalar variable "@charname".