How to get the new oledb connection of oracle in database
programming?
Answer / 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 |
What are the two fundamental objects in ADO.NET?
What is the use of SqlCommandBuilder?
How to create data relations?
What is the difference between data grid and data repeater?
What does ole stand for in excel?
What is dao and ado?
What are the drawbacks of using ado.net?
What is ado object model?
Explain different methods and Properties of DataReader which you have used in your project?
Do you use stored procedure in ado.net?
What is a column variable?
What is the difference between Datareader and Dataset?