SqlConnection con = new SqlConnection(str); con.Open(); SqlCommand cmd = new SqlCommand("Insert into Datatab(firstname) Select Distinct firstname from Admin", con); cmd.Parameters.AddWithValue("@firstname", txtname.Text); // cmd.Parameters.AddWithValue("@rfid", txtname.Text); cmd.ExecuteNonQuery(); con.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)