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 is maximum pool size in ado.net connection string?
describe about the ado.net object model
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.
2 Answers Fulcrum Logic, Satyam,
What is the return type of executescalar?
What is the difference between ado.net and entity framework?
Explain the difference between data reader and data set?
Can you edit data in the Repeater control?
What provider ado.net use by default? Explain the role of data provider in ado.net?
How to Handle the exceptions in Sqlsrver2000
What providers does Ado.net uses?
What are the two fundamental objects in ADO.NET?
What is the provider being used to access oracle database?