G
Guest
Hello,
Am I correct in thinking that it is currently not possible to perform an SQL
JOIN across multiple DataTables in a DataSet in .NET? I have a typed DataSet
with three relational tables which need to be placed into one flat table,
e.g.:
Table A: PK, Table A Col 1, Table A Col 2...
Table B: PK, FK 1 (Table A PK), FK 2 (Table C PK)
Table C: PK, Table C Col 1, Table C Col 2...
=> PK, Table A Col 1, Table A Col 2, Table C Col 1, Table C Col 2
Currently the only way to resolve this involves embedded for-loops going
down each of the typed relations to get the required data. Obviously
performing one SELECT statement would be far more efficient, but is this
possible here?
I only have access to this DataSet and so am unable to perform the join in
the database before the DataSet is Filled.
Thanks,
Marc
Am I correct in thinking that it is currently not possible to perform an SQL
JOIN across multiple DataTables in a DataSet in .NET? I have a typed DataSet
with three relational tables which need to be placed into one flat table,
e.g.:
Table A: PK, Table A Col 1, Table A Col 2...
Table B: PK, FK 1 (Table A PK), FK 2 (Table C PK)
Table C: PK, Table C Col 1, Table C Col 2...
=> PK, Table A Col 1, Table A Col 2, Table C Col 1, Table C Col 2
Currently the only way to resolve this involves embedded for-loops going
down each of the typed relations to get the required data. Obviously
performing one SELECT statement would be far more efficient, but is this
possible here?
I only have access to this DataSet and so am unable to perform the join in
the database before the DataSet is Filled.
Thanks,
Marc