i have an update statement,which gives an error "Failed to convert parameter value from a String[] to a String."
SqlCommand comm1 = new SqlCommand("UPDATE count set ETR=@ETR WHERE Id IN ( " + itemIDs + ")", connection);
comm1.Parameters.Add("@ETR", System.Data.SqlDbType.VarChar, 50);
comm1.Parameters["@ETR"].Value = delivery;
where itemIDs is an array.now i want to set the value ETR equals to values retrieved from an array "delivery".i mean to say for each itemID there is a value in delivery array and this command shouls set the value of ETR for each itemID to corresponding value in delivery array