OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand
("select * from login",oleDbConnection1));
OleDbCommandBuilder cmd=new
OleDbCommandBuilder(ole);
ole.Fill(dataSet11,"login");
DataRow drow=dataSet11.Tables
["login"].NewRow();
drow[0]=textBox1.Text;
drow[1]=textBox2.Text;
drow[2]=textBox3.Text;
dataSet11.Tables["login"].Rows.Add
(drow);

ole.UpdateCommand=cmd.GetUpdateCommand();
ole.Update(dataSet11,"login");

MessageBox.Show("one row added");
this gives exception.how to solve it



OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand ("select * from login",oleDbCo..

Answer / shiva

what is the exception your faced????????
may be the exception is where your declare dataset11
in diconnected model we hav to declre the dataset then only
data willbe fiied in our application.......

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

What is ole used for?

0 Answers  


What is the difference between ado.net and entity framework?

0 Answers  


Explain the overview of ado.net architecture?

0 Answers  


What is the provider being used to access oracle database?

0 Answers  


Give an example of a .net application which connects to microsoft access database using ado.net classes.

0 Answers  






How to call the SQL commands asynchronously in ADO.NET version 2.0

4 Answers   DELL,


What is ado rdo dao in visual basic?

0 Answers  


What is ole word?

0 Answers  


Define bubbled event?

0 Answers  


Explain why edit is not possible in repeater?

0 Answers  


What are advantages of microsoft-provided data provider classes in ado.net?

0 Answers  


What is namespace in ado.net?

0 Answers  


Categories