I dont know what you are implying but here is my logic
you could use for loop
for(int i=0; i<20; i++)
{
string sqlQuery = "INSERT INTO table(blah)";
sqlQuery += "VALUES (@blah)";
using (SqlConnection dataConnection = new SqlConnection(connectionString))
{
using (SqlCommand dataCommand = dataConnection.CreateCommand())
{
dataConnection.Open();
dataCommand.CommandType = CommandType.Text;
dataCommand.CommandText = sqlQuery;
dataCommand.Parameters.Add("@blah", text to insert);
dataCommand.ExecuteNonQuery();
dataConnection.Close();
}
}
}