what is the syntax code for oldb to connect oracle

Answer Posted / sudha

first add the namespace

using system.Data.oledb;

OledbConnection cntn = new OledbConnection("Provider =
Microsoft.jet.oledb.12.0;datasource = (local);Integrated
security = SSPI,persistent Security = false");

provider = it depends on version of Microsoft Access like if
it is 2003 - 4.0 & if it is 2007 - 12.0

dataource - u can make it as local or provide the path to ur
database

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ado code?

505


Does entity framework use ado.net?

507


What does ole stand for in excel?

602


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

459


Which namespaces are used for data access?

628






What is ado.net in vb net?

508


What is difference between datareader and dataadapter?

550


Explain the difference in record set and dataset?

493


What is Dataset Object?

564


What are two important objects of ADO.Net?

556


What is csdl entity framework?

557


What is difference between executenonquery and executequery?

473


What are the parameters that control most of connection pooling behaviors?

517


How can we load multiple tables in a dataset?

535


Can we connect two dataadapters to same data source using single connection at same time?

533