I am going to start a rather large project, so I am collecting information about some of the problems that I predicted when reading project documentation and client requests. One of these issues is this:
My client is a company with several divisions, and each of these divisions uses its own database. Now I have a task to make an administration application that all these units will use (they all perform the same tasks, they are simply divided due to their geographical locations and some legal norms that are not important for my question), So, my the problem is how to create an application that can switch between databases. Normally I could do this by creating a WinForm that will contain input fields (e.g. textBoxes or comboBoxes) where the user can choose which connection to use, but I have a problem with this approach due to the reports that these applications should generate . So far I have been working with .rdlc reports,which use datasets created by TableAdapters. Therefore, if I create a data set programmatically, I do not know how to create a report. But, if I create a report based on the TableAdapters dataset, I don’t know how to change the TableAdapters connection string (except for duplicating TableAdapters, so everyone uses a different connection string, but this is inefficient at all). I use C # to create WinForms and SQL for working with databases. Please help me with this problem. Thanksbut it is ineffective at all). I use C # to create WinForms and SQL for working with databases. Please help me with this problem. Thanksbut it is ineffective at all). I use C # to create WinForms and SQL for working with databases. Please help me with this problem. Thanks
source
share