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 a data control clerk?
What is the difference between sqldatareader and sqldataadapter?
Explain executenonquery?
What is the use of connection object in ado.net?
What is microsoft ado.net?
How to pass values into a datatable?
What is a dynaset in access?
What is the functionality of data provider in ado.net?
What are the different row versions available in table?
What are all the different authentication techniques used to connect to MS SQL Server?
Explain the difference between ado and ado.net?
What is connected architecture in ado.net?
What is fill method in ado.net?
Define atomicity?
How is entity framework different from ado.net?