what is the syntax code for oldb to connect oracle

Answers were Sorted based on User's Feedback



what is the syntax code for oldb to connect oracle..

Answer / srinivas.kinthada

i think oldb is not correct it's may b.
it is oledb

using system.data.oledb;
oledbconnection cn=new
oledbconnection("uid=<username>;pwd=<password>;server=<servername>");
cn.open();

Is This Answer Correct ?    2 Yes 0 No

what is the syntax code for oldb to connect oracle..

Answer / raghavendra.v

it is not oldb it may be oledb

using System.Data.Oledb;

Oledbconnection cn=new OleDbConnection
("Provider=Msdaora.1;uid=<username>;pwd=<pwd>;server=<server
name>");
cn.open();

Is This Answer Correct ?    1 Yes 1 No

what is the syntax code for oldb to connect oracle..

Answer / 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

More ADO.NET Interview Questions

In how many ways we can retrieve table records count? How to find the count of records in a dataset?

0 Answers  


What is the default view of Data Grid?

5 Answers   TCS,


What are the different methods available under the sqlcommand class to access the data?

0 Answers  


What is serialization and de-serialization in .net? How can we serialize the dataset object?

0 Answers  


what is the syntax code for oldb to connect oracle?

2 Answers  






What is ODP.NET?

2 Answers   Microsoft,


What is connection pooling and what is the maximum pool size in ado.net connection string?

0 Answers  


Explain the ADO . Net Architecture ?

3 Answers  


Difference between sqlcommand and sqlcommandbuilder?

0 Answers  


Explain ado.net features? Benefits? Drawbacks?

0 Answers  


How you will set the datarelation between two columns?

3 Answers  


What is ado code?

0 Answers  


Categories