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.
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
Sachin SinghRank #66 · 26.2K reputationPosted Jan 29, 2021, 1:47 PM EST
Cr BhargaviRank #420 · 5.9K reputationPosted Sep 20, 2023, 11:40 PM EDT
T-Sql query is needed in order to save changes to do the changes of some row or when it deletes the data
Saravanan GanesanRank #153 · 15.1K reputationPosted Sep 24, 2023, 12:56 PM EDT
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.