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

Explain the difference between ado and ado.net?

690


What is executenonquery ado.net?

713


What is the provider being used to access oracle database?

728


What are the different row versions available in table?

724


What is the usage of the dataset object in ado.net?

695


How do you update a dataset in ado.net and how do you update database through dataset?

684


What is adodb dll?

737


What is Dataset Object?

757


What are the classes in System.Data.Common Namespace?

888


Is datareader faster than datatable?

713


What is full form of ado?

712


Explain executenonquery?

800


How to pass values into a datatable?

813


What is the significance of CommandBehavior.CloseConnection ?

832


What is ado net stands for?

702