I simply add comma next to each word:
foreach (DataRow row in ds.Tables[0].Rows)
{ {
sqlIn += row["personId"] + ", ";
}
Then I remove the last comma which one is unnecessary:
sqlIn = sqlIn.TrimEnd(' ', ',');
And I feel like in the days of classic ASP. Is there any C# version of what I do?
Further to Bas B answer Correct syntax is
Here is working proof
Output will be