Managing multiple database connections
1. What is the preferred way to manage several database connections from an application?
2. Is it possible to keep multiple connections open at the same time?
3. After finishing with a database connection, how should I initialize the next connection?
For example. the code connects to 1 database using the typical QxSqlDatabase::set...() methods. Next I try to do it initialize
to another DB using the same sequence of steps, but execution of queries fail. I also tried to close the db after being done initially and
re-initialize again using QxSqlDatabase::set...() - doesn't work either.
2. Is it possible to keep multiple connections open at the same time?
3. After finishing with a database connection, how should I initialize the next connection?
For example. the code connects to 1 database using the typical QxSqlDatabase::set...() methods. Next I try to do it initialize
to another DB using the same sequence of steps, but execution of queries fail. I also tried to close the db after being done initially and
re-initialize again using QxSqlDatabase::set...() - doesn't work either.