G
Guest
Hi,
I have a simple query with an inner join:
select A.Field1, B.Field1 from A inner join B on A.Field2 = B.Field2
when I read the values with an oledbdatareader accesing a SQL Server
database (reader["Field1"]) return the value from the table "A", and i can't
read the value in the table "B". I test this --> reader["A.Field1"], but
result in an exception
when I use the same query accesing a simple MS Access database I must use
the reader like this --> reader["A.Field1"] and reader["B.Field1"] (I can
access the values in all tables A and B). I test this --> reader["Field1"],
but result in an exception.
How i can access the same field name in two different tables when I'm
accessing a SQL Server???
thanks in advance
I have a simple query with an inner join:
select A.Field1, B.Field1 from A inner join B on A.Field2 = B.Field2
when I read the values with an oledbdatareader accesing a SQL Server
database (reader["Field1"]) return the value from the table "A", and i can't
read the value in the table "B". I test this --> reader["A.Field1"], but
result in an exception
when I use the same query accesing a simple MS Access database I must use
the reader like this --> reader["A.Field1"] and reader["B.Field1"] (I can
access the values in all tables A and B). I test this --> reader["Field1"],
but result in an exception.
How i can access the same field name in two different tables when I'm
accessing a SQL Server???
thanks in advance