Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!rutgers!att!ihlpf!mohan From: mohan@ihlpf.ATT.COM (Mohan Palat) Newsgroups: comp.databases Subject: INGRES - Switching databases at run time ??? Message-ID: <8372@ihlpf.ATT.COM> Date: 1 May 89 22:45:14 GMT Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 26 The Winter/Spring 1989 issue of the INGRES Connection newletter has an interesting technical suggestion that apparently does not seem to work. It says, "Any INGRES executable can be pointed to a database different from the one originally used for development. For example, if you created the application executable, newapp, while using a database called testdb, that database is the one opened when you run newapp. To run the same application executable against another database (say fulldb), execute the command newapp -d fulldb." In other words, if I had a .qc program in which I open a database (say, ## ingres testdb), I should be able to replace testdb at run time with some other database by using the -d flag. Well, it looks like there's something more to it than what the newsletter suggests. Any ideas? Mohan Palat att!ihlpf!mohan P.S.: Of course, one can use an equel/c variable as the database name, and pass in the name at run time as an argument. -- MOHAN PALAT