Solved

BDE Alias managing

Posted on 1999-01-15
2
294 Views
Last Modified: 2012-05-07
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
Comment
Question by:milicicd
2 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 170 total points
ID: 1356778
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
 

Author Comment

by:milicicd
ID: 1356779
Thanx a lot, BlackMan!

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question