Hi,
I am trying to create functions which uses IF ELSE loops depending on some user data(which can vary) using dynamic sql for automating some process. Currently, I am plainly using string(NVARCHAR(5000)) and concatenating in a FOR LOOP for writing...