SqlCommand cmd1 = new SqlCommand(); cmd1.Connection = Class_SQL.con; cmd1.CommandText = "delete from Tbl_CustomerTools where IDDevice=(select ID from Tbl_CustomerDevice where Cust_Id=(select Cust_Id from Tbl_CustomerDetail where Cust_Id = '" + IDCust_Selected + "))'"; Class_SQL.con.Open(); cmd1.ExecuteNonQuery(); Class_SQL.con.Close();
cmd1.CommandText = "delete from Tbl_CustomerTools where IDDevice in (select ID from Tbl_CustomerDevice where Cust_Id in (select Cust_Id from Tbl_CustomerDetail where Cust_Id = " + IDCust_Selected + "))";
cmd1.CommandType=CommandType.Text
cmd1.CommandText = "delete from Tbl_CustomerTools where IDDevice=(select ID from Tbl_CustomerDevice where Cust_Id=(select Cust_Id from Tbl_CustomerDetail where Cust_Id = '" + IDCust_Selected + "))'";
"))'"
"'))"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)