how to update data set?

Answers were Sorted based on User's Feedback



how to update data set? ..

Answer / kamlesh

With use of following code we update the data set:-
Using System.Data.SqlClient;
Using System .Data;
Using System.Configrution;
SqlDataAdpator da=new SqlDataAdaptor
("query",ConfigrutionSetting.AppSetting["key"]);
DataSet ds=new DataSet();
da.Fill(ds);
da.Update(ds);

Is This Answer Correct ?    3 Yes 0 No

how to update data set? ..

Answer / kuber manral

da.update(ds);
// da-->> object of dataAdapter
// da-->> object of Dataset

Is This Answer Correct ?    1 Yes 0 No

how to update data set? ..

Answer / anand

usuing data.sqlclient;
---code----
sqldataadapter da=new dataadapter();
dataset ds=new dataset();
da.fill(ds);
da.update(ds)

or we cause to solve problem as--
public override int Update(
DataSet dataSet
)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is IPostBack? How to use it?

0 Answers   MCN Solutions,


In a page u have Web user controls . So what is the order in which the Page life Cycles takes place?

1 Answers  


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  


What r the asp.net list controls and difference between them?

0 Answers  


How to use DevExpress controls

1 Answers  


Why do we need master page in asp.net?

0 Answers  


What are the disadvantages of view state?

0 Answers  


What is a transaction? a) A banking term. b) A concept used to describe a step in the business process. c) A combination of DML steps that must succeed or the data is retuned to its initial state. d) A combination of DDL steps that must succeed or the data is retuned to its initial state.

5 Answers   Syntax Softtech,


What are the types of assemblies and where can u store them and how ?

1 Answers   Patni,


What is localhost in asp.net?

0 Answers  


Is It Possible for Static Variables access normal variable? and Normal Varialbe Access the static Variables?

1 Answers   Phoenix Technologies,


What is query string?

0 Answers  


Categories