I have a .net code which i need to replicate as it is in sql server. Need a same user defined function as follows. As I am not that much expert in sql server could you please help me.
My .net function is as follows.
public static string GetCsv(params string list)
string comma = "";
string ret = "";
for (int i = 0; i < list.Length; i++)
ret += comma + list[i];
comma = ",";