I have met some problem with the SQL server, this is the function I created:
ALTER FUNCTION [dbo].[testing1](@price int) RETURNS @trackingItems1 TABLE ( i
In my case, I was getting this error because my table had
varchar(50)
but I was injecting 67 character long string, which resulted in thi error. Changing it to
varchar(255)
fixed the problem.