As I am not so clear in scenarios of when to use stored procedures instead of functions ,
I have a scenario where a function is already being used, but as it takes much time to execute in a stored procedure, now can I replace this function (which returns a string) with a procedure?
Can any one please explain me what happens when replacing a function with a stored procedure?
Thanks in advance.