hello ,
how can i use update and delete query in c# application form.
i'm using SQL Server 2014
database name is : Test1
table name is : First
Column's are : Name, Address, Number .
if u guys have any idea then plz help me out
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sneha Sneha77 reputationPosted Apr 28, 2015, 5:09 AM EDT
lets say u have name as unique identity on that basis i will give you query of both.
To update ....
update tablename set column name1 = "value", columnname2="value" where columnname="unique identity";
now according to your table.....the update query will be:-
update First set Address="Nepal",Number="4567687" where Name="Irfan";
_______________________________________________________________
now similarly to delete query will be:-
Delete * from First where Name="Irfan";
_________________________________________________________________
if any doubt then reply me.
Regards.
Muhammad Irfan4 reputationPosted Apr 28, 2015, 6:51 AM EDT
Sneha Sneha77 reputationPosted Apr 28, 2015, 8:34 PM EDT
g s102 reputationPosted May 8, 2015, 4:17 AM EDT
http://dotnetdrizzles.blogspot.in/2014/09/delete-query-in-sql-server-using-aspnet.html
http://dotnetdrizzles.blogspot.in/2014/09/update-query-in-sql-server-using-aspnet.html