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
Which is faster ado.net or linq?
Is entity framework better than ado.net?
Explain how to create dynamic gridview?
I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, how do you check whether all the 10 records were present while updating the data(which event and steps) and throw the exception 28 can datareader hold data from multiple tables?
What is the difference between DataReader and DataSet in ADO.NET?
What is bubbled event?
How would you connect to a database by using .NET?
What is data view and variable view?
What is difference between ado and other data object?
Explain ODP.net
What does executereader return?
What is ado oledb and odbc?
What is a column variable?
Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?
What is defaultview in datatable?