Saturday , 24 July 2021
Breaking News

How to delete data from SQL Server in Visual C#

Spread the love

How to delete data from SQL Server in Visual C#

In this video you will see how to delete data from sql server using Visual C# Step by step.

con.Open();
string query = “delete from student where id='” + textBox1.Text + “‘”;
SqlDataAdapter sda = new SqlDataAdapter(query, con);
sda.SelectCommand.ExecuteNonQuery();
con.Close();
MessageBox.Show(“Record has been deleted successfully”);

 

The above video tutorial shows how to delete data from SQL Server in Visual C# platform. please see the video tutorial and share it with other users.

Leave a Reply

Your email address will not be published. Required fields are marked *

Adnan Online Class