what is the syntax code for oldb to connect oracle

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by executenonquery?

614


What is the difference between DataReader and DataSet in ADO.NET?

667


Explain the difference between sqlcommand object and command behavior object?

618


How to pass values into a datatable?

690


What is sqlconnection and sqlcommand?

602






What does ole stand for in excel?

717


What are the benefits of ADO.NET?

736


What is the difference between Datareader and Dataset?

619


What are the features of ado.net?

581


What is ado.net in mvc?

587


How to perform sorting on a table in ADO.NET?

650


Which property is used to check whether a DataReader is closed or opened?

659


how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?

667


What is an orm, and why would you use one instead of plain old ado.net?

667


What is the difference between dataset and datatable?

569