How does sqlcommand builder work?
I have an old asp.net project in which DataAdapters have havily used, i want to know how does update() work.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Sachin SinghPosted Jan 29, 2021, 6:47 PM
Saravanan GanesanPosted Sep 24, 2023, 4:56 PM
The
DataAdapterin ASP.NET is used to interact with a database using aDataSet. TheUpdate()method is used to synchronize changes made to theDataSetwith the actual database. It works as follows:DataSet.DataSet(inserts, updates, deletes) are tracked.Update(), theDataAdaptergenerates SQL commands (INSERT, UPDATE, DELETE) based on the changes.The
DataAdapterautomatically generates SQL commands based on the original SELECT command and the database schema. It's a convenient way to update the database with changes made in theDataSet, simplifying the process of data manipulation in ASP.NET applications.Cr BhargaviPosted Sep 21, 2023, 3:40 AM
T-Sql query is needed in order to save changes to do the changes of some row or when it deletes the data