I have working on a project which contains two DB , the common tables are in main DB and some specific tables are in separate DB.
I need to connect the DB dynamically because the second DB is based on the user they log-in in site . We get the details from DB and then create a DB settings and connect .
Can anyone help on this concept.