The below commnand ran successfully when i click the respective button but no changes on the database
SqlCommand command = new SqlCommand("select distinct * into #tmp From bounce delete from bounce insert into bounce select * from #tmp drop table #tmp)", connection);
connection.Close();
MessageBox.Show("Cleared Duplicates");
Note: Table bounce having only one column called email to remove the duplicates I created this button function

Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 27, 2018, 9:02 PM EST
Ravi SangtaniRank #1,947 · 751 reputationPosted Feb 27, 2018, 9:34 PM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 27, 2018, 8:33 PM EST
Shankar M64 reputationPosted Feb 27, 2018, 8:40 PM EST
Shankar M64 reputationPosted Feb 27, 2018, 8:47 PM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 27, 2018, 8:51 PM EST
Shankar M64 reputationPosted Feb 27, 2018, 8:58 PM EST
Shankar M64 reputationPosted Feb 27, 2018, 9:08 PM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Feb 27, 2018, 9:15 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 28, 2018, 2:49 AM EST
Uttam ChaturvediRank #477 · 5.2K reputationPosted Feb 28, 2018, 11:57 AM EST
Tushar DikshitRank #1,378 · 1.2K reputationPosted Feb 28, 2018, 5:02 AM EST