SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL update and Delete
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Shep
Starting Member

USA
19 Posts

Posted - 07/15/2013 :  15:07:22  Show Profile  Reply with Quote
I have to do an simple update and delete in a project for school.
I need FAST help bc I forgot this was due tonight.

So what I want to do is have 2 textboxs. Named txtEmpID, txtPhone

The user types in the info an it updates the database with the phonenumber when the button is clicked

Also, Another button that will delete the row selected by the txtEmpID.

Someone PLEASE give me the code for this.
When I get off work, I will only have 1 hour to get this into my laptop before I have to go to class.

Thanks,
Shep

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 07/16/2013 :  01:31:14  Show Profile  Reply with Quote
whats the application you're using? you need some code in application to formulate query based on your selection and then query it against database. So unless you specify application language we cant even suggest a reference
From SQL perspective, this requires a simple update and delete queries with filter condition based on EMpID

http://www.w3schools.com/sql/sql_update.asp

http://www.w3schools.com/sql/sql_delete.asp

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000