I work on sql server 2012 i call procedure name as below EXEC Recover_Truncated_Data_Proc 'Nahdy','dbo.Student' I get error Msg 537, Level 16, State 3, Procedure Recover_Truncated_Data_Proc, Line 113 Invalid length parameter passed to the LEFT or SUBSTRING function. so How to solve this issue please