Let us think my sql query is
select customerDetials.custid,TestTable.col1 from CustomerDetails INNER JOIN TestTable on CustomerDetails.custid=TestTables.custid where CustomerDetails.custid>0
I wanna use OleDbDataReader to retrieve rows of this .
I used this way
while (dataReader.Read())
{
string str= dataReader["customerDetials.custid"].ToString();
}
but the prob is here join is there so if I give column name like above its throwing me an exception and I can't use index or I cant change the sql query .So is there any way to retrieve the data using the column name?