I have a table tblEmployee with a boolean "Active" field. I'd like to insert a value of 0 into this field when i click my btnTerminateEmployee.
How do i make this happen?
You'll have to write an Inert query in your database (ideally put it in a Stored Procedure) and then execute the Stored Procedure using the relevant SQL provider (i.e. if it's SQL Server, use the System.Data.SQLClient.SqlCommand class).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.