Say you have a function name dbo.ufn_SplitText() it takes the value NVARCHAR(MAX) and NVARCHAR(1), say It Takes the value like
"abc,cde,def" and "," and it returns
abc
cde
def
So you need to call this function in stored procedure like
SELECT * FROM dbo.ufn_SplitText('abc,cde,def',',')
If you need to take the function value from other table then use like ths:
Suppose a table dbo.tbl_test contains ID and Values column and your required column number is @colnumber INT
DECLARE @Variable NVARCHAR(MAX)
SELECT @Variable = [Values] FROM tbl_test WHERE ID = @colnumber
SELECT * FROM dbo.ufn_SplitText(@Variable,',')
If your separator is not ',' then use your separator like '/' ..
Hope this will help you. Good luck