![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
Wed, Aug 26 2009 12:05 AM | Permanent Link |
Brent | This is a newbie question, so please bear with me.
Can the .EDBCfg file be created using just Delphi code? Or is it always created by the EDB Mgr? The reason I ask is I will be building a database from scratch on the user's machine and would prefer if I could create all the tables using code. If not, then would the alternative be to create an empty .EDBCfg file using the EDB Mgr on my machine and just copy that file to the user's machine then have my Delphi code reference that .EDBCfg file before I build the tables? TIA Brent |
Wed, Aug 26 2009 3:42 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | Brent
Providing you do it properly the configuration file will be created automatically. I think its when you open the session. Roy Lambert [Team Elevate] |
Wed, Aug 26 2009 11:30 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Brent,
<< Can the .EDBCfg file be created using just Delphi code? Or is it always created by the EDB Mgr? >> It is automatically created if it doesn't exist when the first session that attempts to access it finds it missing. The same is true with the database catalog file and with the table files. ElevateDB is made to automatically cope with missing files and revert to the default, empty version of the object that is contained in a file. In the case of a configuration file, the default configuration is assumed, in the case of a database catalog file, an empty (no tables, views, etc.) database is assumed, and in the case of the table files, an empty (no rows) table is assumed. << The reason I ask is I will be building a database from scratch on the user's machine and would prefer if I could create all the tables using code. If not, then would the alternative be to create an empty .EDBCfg file using the EDB Mgr on my machine and just copy that file to the user's machine then have my Delphi code reference that .EDBCfg file before I build the tables? >> See the CDCollector example application and demo apps that come with ElevateDB. They all create their databases from scratch and use the main application directory as the configuration file path. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, August 14, 2024 at 03:12 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |