1. Multiple Databases with EDS
- Posted by "C. K. Lester" <cklester at HOTPOP.COM> Jun 02, 2000
- 458 views
- Last edited Jun 03, 2000
Rob, How do I switch between multiple OPEN databases? For instance, I want to open database A, create two tables, then open database B, create two tables. I want to end up with TWO open databases, between which I can switch with a simple db_select() command... I would think with a notion of "current" database that there would be "non-current," but still OPEN, databases, but maybe I'm wrong. Thanks! ck
2. Re: Multiple Databases with EDS
- Posted by Robert Craig <rds at ATTCANADA.NET> Jun 02, 2000
- 420 views
- Last edited Jun 03, 2000
C.K. Lester writes: > How do I switch between multiple OPEN databases? > For instance, I want to open database A, create two tables, > then open database B, create two tables. I want to end up > with TWO open databases, between which I can switch > with a simple db_select() command... Have a look at db_compress() down near the end of database.e. It has two databases open, and it switches back and forth between them using db_select(path) to choose the database, and db_select_table(name) to choose the table. Maybe you forgot to select a table after switching databases. > I would think with a notion of "current" database that > there would be "non-current," but still OPEN, databases, > but maybe I'm wrong. You are correct. The databases are still open although you refer to them by their file path name. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: Multiple Databases with EDS
- Posted by "C. K. Lester" <cklester at HOTPOP.COM> Jun 04, 2000
- 459 views
I looked for db_select in my copy of database.e but couldn't find it. Then I downloaded the latest version and there it is. Oops. Thanks! ck > RDS said: > > Have a look at db_compress() down near the end of database.e. > It has two databases open, and it switches back and forth > between them using db_select(path) to choose the database, > and db_select_table(name) to choose the table. Maybe you > forgot to select a table after switching databases.