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
1 5506oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
2445The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
2080i have two textboxes one for user name and another for password . i have a table name compare(which contains name,passwod etc.,)my doubt is how compare username textbox with name column and how compare password textbox with passwod column. i want the code
9 18190what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?
3 13856explain connection less and with connection?diference between data reader,data set,data adapter? can we use data reader,data set in a single application? if yes explain with simple code,if no explain?
3 17156
What is the difference between sqlcommand and sqldataadapter?
What you mean by filtering of data?
What is the use of Dataview?
Explain ODP.net
Which is the best method to get two values from the database?
In how many ways we can retrieve table records count? How to find the count of records in a dataset?
How can we check that some changes have been made to dataset since it was loaded?
What is the difference between SqlCommand and SqlCommandBuilder?
What is ado object model?
Explain the architecture of ado.net?
What is data access pattern?
Difference between sqlcommand and sqlcommandbuilder?
Which method is used by command class to execute SQL statements that return single value?
What is ado net stands for?
Define data access layer?