How to Delete Query in SQL Server in C# 2013 2010 and 2008 Code and Class
New Post has been published on http://www.saqibsomal.com/c-sharp/how-to-delete-query-in-sql-server-in-c-2013-2010-and-2008-code-and-class/28
How to Delete Query in SQL Server in C# 2013 2010 and 2008 Code and Class
Delete Query in SQL Server in C# 2013
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Data.SqlClient; using System.Text; using System.Windows.Forms;
namespace Train_reservation_1._0 { class Schedule {
SqlCommand cmd = new SqlCommand(); SqlDataAdapter da = new SqlDataAdapter(); DataTable dt = new DataTable();
public void DeleteLocation(string Location)
cmd = new SqlCommand(“DELETE FROM Location WHERE [Location Name] = ‘” + Location + “‘”, MyConnection.GetConnection());
da.DeleteCommand = cmd; da.DeleteCommand.ExecuteNonQuery(); MessageBox.Show(“Delete Schedule succesful”);
- Delete Query in SQL, Delete Query in SQL C# 2013, Delete Query SQL














