Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a value into a field in my database onclick of a button

Status
Not open for further replies.

undeclared

Technical User
Feb 28, 2007
3
US
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).


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top