Hi friends,
I want to know the db connection code for connecting oracle 11g with asp.net 3.5 using c# from the basic. Pls help me.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Syed ShakeerRank #777 · 3K reputationPosted Feb 17, 2011, 12:16 AM EST
Check the below link for more details:
http://www.connectionstrings.com/oracle
Krishna GaradRank #191 · 12.8K reputationPosted Feb 17, 2011, 12:37 AM EST
Refer
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 17, 2011, 1:27 AM EST
using System.Data.Odbc;
OdbcConnection con = new OdbcConnection("
try
{
con.Open();
}
catch (System.Exception ex)
{
//Log your exception here for Connection could not created
}
OdbcCommand cmd = new OdbcCommand("
OdbcDataReader rdr= cmd.ExecuteReader();
Hope it helps you.
Thanks.
Please mark "Do you like this post?" if it helps you.
Suthish NairRank #92 · 22.8K reputationPosted Feb 17, 2011, 10:58 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Feb 17, 2011, 2:56 PM EST
There are things that Visual Studio can do for you to make things easier. I know that sometimes it is necessary to configure the VS Toolbox to make some tools available and I think that tools for Oracle are like that; in other words, I think that VS has some tools that you would not know about unless you configure VS for them.