Posting this mostly to help me think through the issue but feedback would be appreciated.
I've split my database into front and back-ends. Previously, I had a separate utility that clients would have to run to update the back-ends. I'd like to move that work into my front-end but I'm having a hard time figuring out where.
In the front-end I verify the links between the FE & BE. If I put the BE update stuff before the verify, then it's possible all the updates will fail because the BE isn't in the location where the FE is looking for it.
If I put the BE after the verify, then there if I add a new table, the verify isn't going to be able to hookup the new table and give the user an error (I also exit the application if we reach this point because the FE & BE are inconsistent and I don't want the user to have invalid errors/problems.)
It sounds like I need to split the BE update. Verify the links between the FE & BE. If the link is bad, see if this is a new table and if it is, load it, otherwise have user browse to pick the new location of the BE. This logic won't work if the new table is the first one the system tries to verify (?)
I feel like I'm making this harder than it needs to be.
-Lution
I've split my database into front and back-ends. Previously, I had a separate utility that clients would have to run to update the back-ends. I'd like to move that work into my front-end but I'm having a hard time figuring out where.
In the front-end I verify the links between the FE & BE. If I put the BE update stuff before the verify, then it's possible all the updates will fail because the BE isn't in the location where the FE is looking for it.
If I put the BE after the verify, then there if I add a new table, the verify isn't going to be able to hookup the new table and give the user an error (I also exit the application if we reach this point because the FE & BE are inconsistent and I don't want the user to have invalid errors/problems.)
It sounds like I need to split the BE update. Verify the links between the FE & BE. If the link is bad, see if this is a new table and if it is, load it, otherwise have user browse to pick the new location of the BE. This logic won't work if the new table is the first one the system tries to verify (?)
I feel like I'm making this harder than it needs to be.
-Lution