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 the role of the dataset object in ado.net?

662


How can we serialize the dataset object?

644


What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?

871


What is data view and variable view?

569


What are all the different methods under sqlcommand?

597






Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

718


Explain what are acid properties?

634


Which method is used by command class to execute SQL statements that return single value?

643


What is Data Provider?

667


How does ado.net work?

574


Explain how to create dynamic gridview?

597


Why do we serialize data?

594


What is the difference between dataset and datatable?

569


Describe the disconnected architecture of ADO.NET’s data access model.

637


Is it possible to edit data in Repeater control?

597