• Cant split it in the same way because i cant execute procedure as it has wrong number of parameters then, I have to change sth during executing it because im getting multiple values into one parameter so i have not to split it but firstly join

    I am executing the proc in ERP system to cant put there 'full code'

    The only what is probably working is some standard commands, for example

    DECLARE@return_value int

    EXEC@return_value = [dbo].[procedure]

    @days= N'20150401','20150406'

    @ps = N'ps',

    @status= N'1'

    SELECT'Return Value' = @return_value

    So I have to concat some values

    Im getting: 'a','b','c','d'

    I must have 'a,b,c,d'