troubleshooting Question

Database Selection

Avatar of Fidelisme
Fidelisme asked on
Visual Basic.NET
12 Comments1 Solution209 ViewsLast Modified:
Hi Guys.

What i'm trying to do is creating a application using and SQL server 2005 with the following:

I have a Database called DB1 with 2 tables:
- Customer
- Preferences

When i create a new form and in order to place textboxes and datagrid on my form, i create a new DataSet and name it DsDB1.
Then to display the info on my form, i drag DsDB1 from the datasource window into my form and it automatically creates all the necessary fields and datagrid, with the appropriate bindingsource and tableadapter.

Now my problem comes here.
I have another database in my SQL server called DB2 with exactly the same tables and number of fields as DB1.
The only differences is with the content of the databases (Different records).

Is there a way to create an option: Select Database
meaning i get to select which database i want to use, select it and use it normally ??

Thanks a lot !!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros