the script that momocruz post here is the carlota script , using it i got error in sql :
Msg 137, Level 15, State 2, Line 4
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 6
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 7
Must declare the scalar variable "@ActionType".
Msg 137, Level 15, State 2, Line 9
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 13
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 16
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 20
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 24
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 28
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 31
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 35
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 38
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 42
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 46
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 50
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 53
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 57
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 60
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 64
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 68
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 72
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 75
Must declare the scalar variable "@CharID".
Msg 137, Level 15, State 2, Line 79
Must declare the scalar variable "@UserUID".
Msg 137, Level 15, State 2, Line 82
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 86
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 90
Must declare the scalar variable "@CharName".
Msg 137, Level 15, State 2, Line 94
Must declare the scalar variable "@CharName".