Answer Posted / senthil kumar
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 |
Post New Answer View All Answers
What is shadow copy?
What are the benefits of ADO.NET?
Which keyword is used to accept variable number of parameters?
What is a data control clerk?
What does executenonquery () method return?
What does ole stand for in excel?
What is ado.net and its features?
What is the executescalar method?
What is the hierarchy of data in databases?
Explain the advantage of ADO.Net?
Which parameter of ConnectionString is used to specify the name of the database?
What is the use of adodc?
What are the main differences between classic ado and ado.net?
What are the core objects of ADO.NET?
How do I delete a row from a DataTable?