what is the syntax code for oldb to connect oracle
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What are the main differences between classic ado and ado.net?
Execute nonquery returns no. of afected rows.So if my stored procedure hav lot of select stmnt, delete stmnt, insert stmnt..then what does execute nonquery returns in this case?
Compare Data Reader & Dataset in ado.net?
What do you know about ado.net's objects?
What is difference between entity framework and ado.net?
What is ado oledb and odbc?
What is dataset and tell about its features. What are equivalent methods of previous, next etc. Of ADO in ADO.NET ?
Explain the basic use of "dataview" and explain its methods.
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
Which is the best method to get two values from the database?
Can we bind one datareader wid two dropdown list?
What is difference between executequery and executeupdate?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)