Hi Guys,
I try to pull data from Oracle & bind my datasource. Below is my code snippet.
string sql = "Select * from Employee Where EmpId = ':EmpId'";
OracleConnection con = new OracleConnection(connectionString);
OracleCommand cmd = new OracleCommand(sql, con);
cmd.Parameters.Add(new OracleParameter("EmpId", "10");
OracleAdapter oDA = new OracleAdapter(cmd);
oDA.fill(ds);
I don't see any errors but results are not coming. but when i execute my query as follows i see results.
Select * from Employee Where EmpID = '10'; //I can see result
Could you please let me know where It's going wrong.
Thanks
Mageshwaran RPosted Nov 14, 2019, 11:42 AM
Sanwar RanwaPosted Oct 18, 2018, 12:00 AM
Siva VPosted Oct 17, 2018, 7:56 AM
Sanwar RanwaPosted Oct 17, 2018, 7:52 AM