TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Neven Draskovic
NA
117
140.4k
Switching between databases in Windows forms
Mar 1 2012 5:46 AM
Hey
I made an application that generates reports based on data from a database. The functionality of my application is correct, but I have a following problem: my client has 2 identical databases - one for testing and one for actual work he does. My application should work with both databases (it should have a "switching mechanism"), but I don't know how to implement it. I know that I could just switch between connection strings but the problem is that in my reports I use datasets that are bound to one database. Is it possible to fill those datasets with the data from both databases (since the databases are identical in schema, it should be possible), and how would that be done, or do I have to use duplicate dataset/report pairs?
I'm using C# in VS 2010 with SQL Server 2005, and .rdlc for my reports.
Thanks.
Reply
Answers (
3
)
Clone method in SQLite
CallStack property in SQLite