Is there any special reason for using varchar vor lv_carrid and nvarchar for lv_connid. May you give it a try and change the first line to:
DECLARE lv_carrid NVARCHAR(3);
Hope it helps,
Andreas
Is there any special reason for using varchar vor lv_carrid and nvarchar for lv_connid. May you give it a try and change the first line to:
DECLARE lv_carrid NVARCHAR(3);
Hope it helps,
Andreas