what is the syntax code for oldb to connect oracle?
Answer Posted / srinivas.kinthada
i think it's oledb may b.
in c#.net coding
1)
using oledd provider
1.system.data.oledb;
2.oledbconnection cn=new
oledbconnection("username=<username>;pwd=<password>;server=<servername>");
3.cn.open();
2)
using orcale provider
1.first u can give in u r application reference of
system.data.orcaleclient.dll file trough solutionexplorer of
u r application
(rt click the mouse--->over solutinexplorer--->and click add
reference--->click on project---> and select
system.data.orcaleclient.dll file--->ok )
2.using system.data.orcaleclient;
3.orcaleconnection cn=new
orcaleconnection("username=<username>;pwd=<password>;server=<servername>");
3.cn.open();
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the default Timeout for SqlCommand.CommandTimeout property?
What are the different execute methods of Ado.Net?
Is ado.net dead?
What are the steps you will take to improve performance?
How can we perform transactions in .net?
Explain the difference between an ado.net dataset and an ado recordset?
Is it possible to load multiple tables in a Dataset?
What is linq and entity framework?
What are the ado.net components?
What is executenonquery ado.net?
how Sequence to connect and retrieve data from database using dataset?
How does ado.net work?
What are typed and untyped dataset?
What provider ado.net use by default? Explain the role of data provider in ado.net?
List the 4 common ado.net namespaces?