K
Ken Varn
I have a typed DataSet that contains 4 tables. I have mapped a data adapter
to all of the tables in the DataSet. The select command for the data
adapter has a multiple join on all four tables in the typed DataSet. When I
try to do the Fill command, I get an InvalidOperationExcpetion. The message
says that there is an invalid source mapping for one of my columns.
If I change my select statement to only return rows from one table in the
result set, it works fine. Not sure why the other table mappings are not
working.
My select string looks something like this:
select top 500 * from tblEventImages
left outer join tblEventOccurrences on tblEventImages.EventID =
tblEventOccurrences.EventID
left outer join tblImageAnnotations on tblEventImages.TimeDate =
tblImageAnnotations.TimeDate
left outer join tblEventTransactions on tblEventImages.EventID =
tblEventTransactions.EventID
Could someone please indicate how to do the data adapter table mapping for
this? Maybe I am doing something wrong here, but I cannot figure out what
it is.
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
to all of the tables in the DataSet. The select command for the data
adapter has a multiple join on all four tables in the typed DataSet. When I
try to do the Fill command, I get an InvalidOperationExcpetion. The message
says that there is an invalid source mapping for one of my columns.
If I change my select statement to only return rows from one table in the
result set, it works fine. Not sure why the other table mappings are not
working.
My select string looks something like this:
select top 500 * from tblEventImages
left outer join tblEventOccurrences on tblEventImages.EventID =
tblEventOccurrences.EventID
left outer join tblImageAnnotations on tblEventImages.TimeDate =
tblImageAnnotations.TimeDate
left outer join tblEventTransactions on tblEventImages.EventID =
tblEventTransactions.EventID
Could someone please indicate how to do the data adapter table mapping for
this? Maybe I am doing something wrong here, but I cannot figure out what
it is.
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------