This question cannot be answered by a forum thread, it is way too broad. You can certainly build an intranet (web) application that connects to multiple databases. Your data access layer (DAL) must be capable of connection to multiple database (via connections string or whatever strategy you use). If you have been tasked with this and you are asking this question then I suggest you hire a developer.
Never underestimate the power of human stupidity RAH