Pleae can anyone show me how i can connect , and retrieve and disply data from an oracle database using c#
Thanks
Chinedu Nwankwo
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
Dhanunjay Jajimoggla100 reputationPosted Oct 24, 2014, 3:57 AM EDT
string ConString = "Data Source=XE;User Id=system;Password=*****;";
using (OracleConnection con = new OracleConnection(ConString))
{
OracleCommand cmd = new OracleCommand("SELECT * FROM HR.Employees", con);
OracleDataAdapter oda = new OracleDataAdapter(cmd);
DataSet ds = new DataSet();
oda.Fill(ds);
if (ds.Tables.Count > 0)
{
dataGridView1.DataSource = ds.Tables[0].DefaultView;
}
}
chinedu Nwankwo89 reputationPosted Oct 24, 2014, 8:27 AM EDT
' Please how do i achieve this ?
Thanks Much appreciated
Chinedu Nwankwo