Board index » delphi » Help-Database in a Remote Location: Where to put the data files
r...@primenet.com
![]() Delphi Developer |
Sat, 20 Jun 1998 03:00:00 GMT
|
r...@primenet.com
![]() Delphi Developer |
Sat, 20 Jun 1998 03:00:00 GMT
Help-Database in a Remote Location: Where to put the data files
I have written a small database app and want to know if I install it on another
machine, will the app still be looking for the .DB and .DBF files in the directory structure it was seeking them from at the time of compilation? For instance, the data files are in C:\DELPHI\WORK\APPLICAT\DATA on my hardrive. If I install it on another machine, how can I compile the application so that Thanks (Please respond with a message to my mailbox as well as the forum) **************************************** |
Michael Sutt
![]() Delphi Developer |
Sun, 21 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesQuote>If I install it on another machine, how can I compile Store the data directory to an ini file. When the app starts, read the path from the ini file, then update the database params using like this path=<put your string here> then set all your tables active property to true. If it is pointing In addition, I usually create the ini file with whatever installation Hope this helps. Mike |
Michael Lan
![]() Delphi Developer |
Mon, 22 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesQuoter...@primenet.com wrote: c:\app\data\myTable.db then you will have problems. If, on the other hand, you created an alias in BDECfg. then you're off to the races. Your applicaiton will use this alias for all database access. You need only set the alias in BDECfg for each user. BTW, make sure you place your tables on a drive with a letter higher than Ond other thing, be sure to use a TDatabase componet, that way you set the Michael Lant |
Richard Linsley Hoo
![]() Delphi Developer |
Mon, 22 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesIn article <N.010296.173717...@ip225.sna.primenet.com>, r...@primenet.com writes Quote>I have written a small database app and want to know if I install it on another that you can set up databases to be 'below' the application in the appropriate directories. Provided you maintain this when transferring the completed application all will be well without any changes, either at design or run time, being required. -- Turnpike evaluation. For information, email: i...@turnpike.com |
Mike Grim
![]() Delphi Developer |
Mon, 22 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesQuoteMichael Lant <ml...@xyberlynx.net> wrote: directory as drive D: and not have a corrupted table? Is this true under any Network OS? Or is it a "feature" of DOS's share? Regards, ================================================ |
Bob Malle
![]() Delphi Developer |
Mon, 22 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesQuoter...@primenet.com wrote: directory, then simply give it a relative name ie "data\file". Or you could a registry entry to store the base directory of you application. --- Bob Mallett Remember: While the Arc was built by amateurs, it was professionals who built the Titanic - Richard Needham M.P. |
Carlos Alberto S. Souz
![]() Delphi Developer |
Tue, 23 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesQuoter...@primenet.com writes: location. Carlos Alberto. |
Matthew McDermo
![]() Delphi Developer |
Wed, 24 Jun 1998 03:00:00 GMT
Re:Help-Database in a Remote Location: Where to put the data filesQuoteIn article <4cfd7m$...@lion.xyberlynx.net> Michael Lant <ml...@xyberlynx.net> writes: avoid the Alias and BDE situation. I let the user set this value and write it to the Application INI file. Its easier than having them mess with the BDEConfig. Cheers, Matthew |
1. Help on Remote Site Data Forwarding to Central Location
2. how to put jpg files on database files?
4. Reading Data Location from INI file
5. Putting data in a Database Field
6. How to set database file location
7. How can I change the location of second file of Database
8. Help putting file list into a file