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 |
Which is the best method to get two values from the database?
What is difference between sqldatareader and sqldataadapter?
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
5 Answers IBM, Veegyapan Impacts,
How to find the given query is optimised one or not?
How do you handle data concurrency in .NET ?
How do you update database through dataset?
Explain all the classes those are used for database connections between sql server and asp.net?
what is type dataset?
Does ado.net use odbc?
What are the benefits of ADO.NET?
When we are running the Application, if any errors occur in the Stored Procedure then how will the server identify the errors?
What is an example of ordinal data?