How to get the new oledb connection of oracle in database
programming?
Answer Posted / srikant dwibedi
using OLEDB connection we can connect the MS-ACCESS,Sql
Server,Oracle.
here i given the coding for connect the oledb connection
OleDbConnection con = new OleDbConnection();
con.ConnectionString="Provider=Microsoft.Jet.OleDb.4.0;Data
Source=databasenamewithpath;";
con.Open();
then u can use the dataset or datareader
OleDbCommand cmd = new OleDbCommand(sql,con);
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
OleDbDataReader reader;
reader = cmd.ExecuteReader();
OleDbDataAdapter oda = new OleDbDataAdapter(sql,con);
DataSet ds = new DataSet();
oda.Fill(ds,"tablename");
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is ado.net components?
Explain the difference between ado and ado.net?
How can you identify whether or not any changes are made to the DataSet object since it was last loaded?
What is data control techniques?
What is a control toolbox?
What is ado full form?
What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What are the key features of ado.net?
What are the different execute methods of Ado.Net?
What is datasource in ado.net?
What is the difference between oledb sql server and oledbdotnet provider?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
How will you fill the gridview by using datatable object at runtime?
What is read only and forward only in ado.net?
What is a datareader object?