显示已存在该key解决方案
SqlCommand cmd = new SqlCommand();
cmd.Connection = connection;
cmd.CommandText = ssql;
for (int i = 0; i < pasms.Length; i++)
{
SqlParameter pp = (SqlParameter)((ICloneable)pasms[i]).Clone();
cmd.Parameters.Add(pp);
}
SqlDataAdapter sql = new SqlDataAdapter(cmd);
sql.Fill(dt);
cmd.Parameters.Clear();