This question is locked. New answers and comments are not allowed.
Hi there,
So I have an existing database with a strange table in it. It has 114 columns and one of those columns is a row type column. Depending on what that column is set to determines how the rest of the columns are or aren't used. So If the type is set to 5, then we use column 1,2,3,20, and 60.... the rest are ignored. I have 50 some types that all use a "random" assortment of the possible columns. Any columns that aren't used are set to null.
I would like to map this table 50 times and make 50 sane objects based on this table. The idea is to remove all of the columns that I don't need for a particular "type" and rename the columns I do need into something meaningful. I am not the owner of this database (merely a consumer) so I can't not refactor this table. I can't rename its columns or break it into pieces or anything of the sort. I have to just "deal" with what is already there. I can not create views in this database either.
I have been playing around with OpenAccess and I just can't seem to make this happen. Could some one point me in the right direction on how to make this happen? Link to an article or basically just anything to get me going would be great.
Thanks
-Cam
So I have an existing database with a strange table in it. It has 114 columns and one of those columns is a row type column. Depending on what that column is set to determines how the rest of the columns are or aren't used. So If the type is set to 5, then we use column 1,2,3,20, and 60.... the rest are ignored. I have 50 some types that all use a "random" assortment of the possible columns. Any columns that aren't used are set to null.
I would like to map this table 50 times and make 50 sane objects based on this table. The idea is to remove all of the columns that I don't need for a particular "type" and rename the columns I do need into something meaningful. I am not the owner of this database (merely a consumer) so I can't not refactor this table. I can't rename its columns or break it into pieces or anything of the sort. I have to just "deal" with what is already there. I can not create views in this database either.
I have been playing around with OpenAccess and I just can't seem to make this happen. Could some one point me in the right direction on how to make this happen? Link to an article or basically just anything to get me going would be great.
Thanks
-Cam