I can’t seem to get this to work with sql parameters
string itemIds = "86,74,32";
cmd.Parameters.AddWithValue("Items", itemIds);
string sql = "SELECT * " +
"FROM Items " +
"WHERE ItemIds IN(@Items)";
You should add each parameter seperately.
This will probably work.
Edit with for loop