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 5513oledbdataadpter 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?
2451The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
2087i 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 18223what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?
3 13875explain 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 17166
What is the advantage of ado.net?
What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
What are the benefits of ADO.NET?
What is difference between ado and other data object?
What does ado stand for in ado.net?
What is the difference between ADO and ADO.Net?
How to work with disconnected data - the dataset and sqldataadapter?
What is DataRowCollection?
Why edit is not possible in repeater?
Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?
What are the differences between OLEDB and SQLClient Providers?
What are the important features of ado.net 2.0?
What is openrowset?
What is fill method in ado.net?
What is connection in ado.net?