Sunday , 27 September 2020
Breaking News

How to delete data from SQL Server in Visual C#


Notice: Undefined index: tie_hide_meta in /home1/adnanonl/public_html/wp-content/themes/sahifa/framework/parts/meta-post.php on line 3

Notice: Trying to access array offset on value of type null in /home1/adnanonl/public_html/wp-content/themes/sahifa/framework/parts/meta-post.php on line 3
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 *