[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to change database in runtime??

Posted on 2006-04-25
Medium Priority
Last Modified: 2006-11-18
I am using VS2005 and SQL 2005.
If I change connection string in AppConfig in runtime the app needs to be restarted to connect to new database.
Databases are completly the same schema but with different amount of data.
Strong type tableadapters do not have connection string property exposed.

So how to change active database in runtime??
Question by:sinisap
1 Comment

Accepted Solution

e1v earned 150 total points
ID: 16533935
Strong typed tableadapters does have connectionstring exposed: tableAdapter.Connection.ConnectionString

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question