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

How to remove cache object in asp.net?

2 Answers   TVS,


how many character send in one sms forget 160limit and think about gateway allowed

2 Answers   Wipro,


Explain Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET?

1 Answers  


What are the Types of authentications in IIS

0 Answers   Microsoft,


Why asp.net is better than php?

0 Answers  






What is the name of the process the browser uses to find the address of a web server? a) DMZ b) DNS c) Active Directory d) Database lookup

1 Answers   Syntax Softtech,


Why asp.net is used?

0 Answers  


What r the asp.net list controls and diff. Between them?

0 Answers  


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

0 Answers   MindCracker,


differences between class inheritance and interface?

2 Answers  


Does JITting occur per-assembly or per-method? How does this affect the working set?

1 Answers  


What do you understand by aggregate dependency?

0 Answers   MindCracker,


Categories