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 5465oledbdataadpter 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?
2392The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
2037i 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 17983what purpose of Indexing creating? directly we can search the reqired row with the help of query?what is the use of indexing?
3 13769explain 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 17067
What is a datagridview?
List the 4 common ado.net namespaces?
What is concurrency? How will you avoid concurrency when dealing with dataset? (One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid the problem?)
Which object holds only data and does not interact with data source?
What are disadvantages of microsoft-provided data provider classes in ado.net?
What is the difference between data reader and data adapter?
What are datareaders?
What are all the commands used with Data Adapter?
What is the difference between dataset and datatable?
What is a column variable?
What is ado.net code?
How do you update a dataset in ado.net and how do you update database through dataset?
What are the usages of the command object in ado.net?
What are the advantages and disadvantages of using datalist?
What is data relation?