How to get oledb connection?
Answers were Sorted based on User's Feedback
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");
i hope that these are enough.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / guest
oledb provid universal connection strintg .using oledb we
can conntect to any data base.
Is This Answer Correct ? | 2 Yes | 2 No |
What is the difference between sqldatareader and sqldataadapter?
Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.
What is a data control clerk?
I am fresh graduate, trained in C# .net. How do i answer when interview ask me , Where do you see yourself within 5 years from now?
How to identify the controls which can be used for binding data?
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?
How to pass values into a datatable?
What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What is defaultview in datatable?
what is the syntax code for oldb to connect oracle
What is difference between datatable and dataset?
What are relation objects in dataset and how & where to use them?