what is the syntax code to oledb to connect oracle

Answers were Sorted based on User's Feedback



what is the syntax code to oledb to connect oracle..

Answer / govind.konduri

using system.data.oledb;

oledbconnection oracon=new oledbconnection
( " provider=msdaora;
User Id=scott;
Password=Tiger");

Is This Answer Correct ?    2 Yes 0 No

what is the syntax code to oledb to connect oracle..

Answer / kakani kumar

Using System.Data.Oledb;

OledbConnection cnn = new Oledbconnection("Prvider=MsDaOra,
User ID=scott, Password=Tiger, Datasource=m10 );
Datasource is optinal

Is This Answer Correct ?    1 Yes 0 No

what is the syntax code to oledb to connect oracle..

Answer / srinivas

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

here u declare <user_name> is u give username
pwd is u give password
<server> or data source is u give

Is This Answer Correct ?    0 Yes 0 No

what is the syntax code to oledb to connect oracle..

Answer / sinthu vijay kumar

hi friends...

we have so many databases for ex oracle,sql
server,sybase,ms Access etc.providers are used to giving
the connecion to the database ,which r different for
different databases.the avilable providers in ado.net are
oracle.net data provider,odbc.net dataprovider etc.
the syntax for provider is:
con=new odbcconnection
("uid=scott,pwd=tiger,database=oracle")
here uid,pwd,database r vary with different databases.

Is This Answer Correct ?    0 Yes 0 No

what is the syntax code to oledb to connect oracle..

Answer / sinthu vijay kumar

hi friends...

we have so many databases for ex oracle,sql
server,sybase,ms Access etc.providers are used to giving
the connecion to the database ,which r different for
different databases.the avilable providers in ado.net are
oracle.net data provider,odbc.net dataprovider etc.
the syntax for provider is:
con=new odbcconnection
("uid=scott,pwd=tiger,database=oracle")
here uid,pwd,database r vary with different databases.

Is This Answer Correct ?    0 Yes 0 No

what is the syntax code to oledb to connect oracle..

Answer / siddhartha sharma

using System.data.oledb;
oledbdataadapter da;
dataset ds;
da=new data Adapter("select * from
Databasename","connection string");
ds=new dataset();
da.fill(ds);// fetch the database to frontend
//// we use that syntex to fetch oracle database to our
application

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ADO.NET Interview Questions

Which is faster entity framework or ado.net?

0 Answers  


What is the current version of entity framework?

0 Answers  


Write steps of retrieving data using ado.net ?

3 Answers   Keane India Ltd,


ADO and ADO.NET differences?

3 Answers   Microsoft,


What are the namespaces used in ADO.Net to connect to a database?

0 Answers  






How can I retrieve two tables of data at a time by using data reader?

0 Answers  


describe about the ado.net object model

4 Answers   TCS,


Is ADO.NET derived from COM? true /false

2 Answers   Infosys,


how to display empty table to datagrid

3 Answers   LG Soft,


What are the steps you will take to improve performance? Will you use dataset or datareader?

0 Answers  


What Is Difference Between Ado And Ado.net?

0 Answers   BirlaSoft,


What is sql connection in ado.net?

0 Answers  


Categories