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

Can I have a unique key as foreign key?

543


Which namespace is used by ado.net?

571


How do you design a website with multilingual support in ASP.NET ?

548


What are validator? Name the validation controls in asp.net? How do you disable them?

550


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

597






What is the purpose of using MVC programming pattern in ASP.NET?

561


Explain the difference between Web Garden and Web Farm?

551


What is a web server? What are the load limits in it?

592


how to debug web services on consumer side?

584


If you are using two select queries and retrieving data. how do you access second query's result set using data reader?

4759


What is preprocessor in .net? Where it use?

536


What is the advantage of mvc over asp.net? : Asp.Net MVC

511


What are directives in asp.net? List down all the important directives.

507


Why we use asp.net for website development?

501


Define globalization and localization.

570