B
Beren
Hello,
I have an sproc to query a couple of tables, that have the same fieldnames,
for example DateCreated.
-------------------------------------
Select a.* , b.* From tablea a
Join table b On b.keyfield = a.keyfield
-------------------------------------
Now table A and B both have a field called "DateCreated", and I need both
values in my application.
-------------------------------------
.....-- New DataReader dr --....
.....-- query --....
DateCreatedA = dr.Item("a.DateCreated")
DateCreatedB = dr.Item("b.DateCreated")
-------------------------------------
Doesn't seem to work, but
-------------------------------------
SomeVariable = dr.Item("DateCreated")
-------------------------------------
does work, but only for one value...
When I check the resultset in Query Analyzer, it shows duplicate fieldnames,
so that's probably why the DR doesn't swallow my brave attempts with
"a.DateCreated" and "b.Da..."
Can someone help me out getting both values ?
Beren.
I have an sproc to query a couple of tables, that have the same fieldnames,
for example DateCreated.
-------------------------------------
Select a.* , b.* From tablea a
Join table b On b.keyfield = a.keyfield
-------------------------------------
Now table A and B both have a field called "DateCreated", and I need both
values in my application.
-------------------------------------
.....-- New DataReader dr --....
.....-- query --....
DateCreatedA = dr.Item("a.DateCreated")
DateCreatedB = dr.Item("b.DateCreated")
-------------------------------------
Doesn't seem to work, but
-------------------------------------
SomeVariable = dr.Item("DateCreated")
-------------------------------------
does work, but only for one value...
When I check the resultset in Query Analyzer, it shows duplicate fieldnames,
so that's probably why the DR doesn't swallow my brave attempts with
"a.DateCreated" and "b.Da..."
Can someone help me out getting both values ?
Beren.