i have a stored procedure that takes 2 parameters: ID and Date.
when i pass a big text to the ID parameter, only part of the text is taken into consideration. as if the text is cut at a certain place. i figured this because when i execute the stored procedure as following:
exec proc '1,2,3,4', '20100101'
everthing works find
but when i use a big string instead of the 1st argument only part of the string is cut.
Most likely the first parameter of your stored procedure has limited size. In Management Studio locate the procedure, right click, choose Modify or Script->Alter To.. Look for the declaration of the first parameter and change it to
varchar(max)ornvarchar(max).