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 service contract,operation contract?

2 Answers  


Your ASP.NET application displays sales data on a page. You want to improve performance by holding the page in memory on the server for one hour. You want to ensure that the page is flushed from memory after one hour, and that the page is re-created when the next request for the page is received. What should you do? A . Initialize a new instance of the Cache class in the Application.Start event handler. B . Initialize a new instance of the Timer class in the Page.Load event handler. C . Set the Duration attribute of the OutputCache directive in the page. D . In the Web.config file, set the timeout attribute of the sessionState element.

5 Answers   ADITI, Syntax Softtech,


What is full form of asp.net?

0 Answers  


What is asp.net and how it works?

0 Answers  


What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser.

8 Answers   HCL, IBM, Syntax Softtech, Vypin, WideVision Technologies,






What is the namespace to create thread in .net?

0 Answers  


One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again. - this error is occured in Sharepoint 2007 while deploy the web part

1 Answers   WebInfo,


When was asp.net released?

0 Answers  


How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

0 Answers  


How we can force all the validation controls to run?

0 Answers  


What are sharepoint pages?

0 Answers  


What is a session in programming?

0 Answers  


Categories