Link to home
Start Free TrialLog in
Avatar of blak3r
blak3r

asked on

I created a dataset from an access db and developed app. Database structure changed- how can i update my dataset w/o starting from scratch?

I developed an application around a simple Access database.  Then, one of the database table names changed.  

How do I go about updating the dataset classes and table adapters i'm using through out my code?

Could someone point me in the right direction for how you're supposed to go about updating the "dataSet" classes that were automatically generated for me using the Visual Studio Data Source.

I attempted to change all the strings i could find of the `OldTableName` with the `NewTableName` in the dataset.designer.cs files (which is technically a no no since it's an auto generated file) but i still get Ole exceptions stating the old table name cannot be found.

The tableAdapter's aren't updated when a table name is changed... is what i've gathered.  Is there any type of refactoring support?  

Perhaps there is a way of making some type of alias table name in MS Access?
Avatar of p_davis
p_davis

did you do a search of the entire solution with the oldtablename?
Avatar of blak3r

ASKER

Yes.

The files i was updating were automatically generated files.  
So, i think they may be regenerated when i rebuild.
ASKER CERTIFIED SOLUTION
Avatar of blak3r
blak3r

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial