• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

BDE Alias managing

I would like to do following thing - I just guess it's solvable by alias and BDE managing, but if you have any other suggestions, fell free to suggest.
Well, I'm writing application in Delphi 3 that is using Paradox tables and access them via BDE alias that points to directory placed on movable drive. There is also a copy of all tables on fixed drive, and another BDE alias for that. I know that it's possible for application to 'recognize' at initialization time that movable drive is missing, and instead of reporting some error, starts using copy tables on fixed drive.
Do you have any ideas how to manage this? I know it is possible because I saw an application behaving this way.
0
milicicd
Asked:
milicicd
1 Solution
 
BlackManCommented:
Instead on using Alias, add a TDatabase and point all your TTable / TQuery's to it.
Then on the TDatabase, instead of specifying an Alias, you can specify a path to where the database exists.. (It is possible to do the same on TQuery /TTable, butthis way you only have to change the path on the TDatabase)
0
 
milicicdAuthor Commented:
Thanx a lot, BlackMan!

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now