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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
g sPosted May 8, 2015, 8:17 AM
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
Sneha SnehaPosted Apr 29, 2015, 12:34 AM
Muhammad IrfanPosted Apr 28, 2015, 10:51 AM
Sneha SnehaPosted Apr 28, 2015, 9:09 AM
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.