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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Feb 17, 2011, 7:56 PM
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.
Suthish NairPosted Feb 17, 2011, 3:58 PM
Amit ChoudharyPosted Feb 17, 2011, 6:27 AM
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.
Krishna GaradPosted Feb 17, 2011, 5:37 AM
Refer
Syed ShakeerPosted Feb 17, 2011, 5:16 AM
Check the below link for more details:
http://www.connectionstrings.com/oracle