Way of updating a table other than stored procedure and
hard coded query?

Answer Posted / javed khan

The SqlDataAdapter enables us to fill a DataSet and Update changes back to the data base.We don't have to worry about opening and closing the SqlConnection, writing update command because the SqlDataAdapter does it automatically. A SqlCommandBuilder populates insert, update, and delete commands based on the SqlDataAdapter's select statement. Use the Fill method of the SqlDataAdapter to fill a DataSet with data. Call the SqlDataAdapter's Update method to push changes back to a data base.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways to sending the data in ASP.NET page?

749


What are the memory-mapped files?

748


How many types of triggers are there in update panel?

775


What is view state and how it works in asp net?

771


What are ASHX files?

799


What do you mean by query string?

722


Can we handle the error and redirect to some pages using web.config?

1262


Can viewstate be accessed in another page?

732


When you use Ajax controls in the ASP.NET application?

784


What is in a session cookie?

718


Explain the advantages of asp.net.

730


What are the data controls available in asp.net?

709


Explain how viewstate is being formed?

740


Explain the use of dataadapter.

815


What are client activated objects?

775