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
Explain the differences between oledb sql server, oledbdotnet provider?
Which is the best method to get two values from the database?
Which keyword is used to accept variable number of parameters?
What do you mean by performing asynchronous operation using command object?
Is ado.net an orm?
What is the use of adodc?
What are the namespaces used in ADO.Net to connect to a database?
What is Serialization in .NET? what are the types of Serialization?
How does ado.net work?
What is variable view?
How do you connect to sql server database without using sqlclient?
How to find the given query is optimised one or not?
Command objects uses, purposes and their methods.
What is ado.net architecture?
What is oledb connection?