Hi,
I have a requirement like, developed an ASP.net web application. I want to host this application for different companies with seperate database, but website shall be hosted only one copy in IIS. so, based on user login, the application should connect different database server.
For Ex: if user "xxx" login with credential and belogs to "ABC" company and the database is "ABC", then ABC data need to display on the web page.
if user "XYZ" login with credential and belogs to "HGJ" company and the database is "HGJ", then HGJ data need to display on the web page.
Can any one give good solution for the same.
Loading


Sachin SinghRank #66 · 26.2K reputationPosted Dec 6, 2021, 8:42 AM EST
Asma KhalidRank #160 · 14.7K reputationPosted Dec 6, 2021, 4:56 AM EST
You need to create a proper Database structure to capture such events and proceed in your app accordingly.
Mark answer as accepted if helpful
Thanks & Regards,
Asma Khalid
Suraj DubeyRank #2,182 · 647 reputationPosted Dec 7, 2021, 2:16 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 7, 2021, 11:03 AM EST