Adding a Data Source

J

Jonathan Wood

I'm fairly new to using a SQL Server data source in a C# Windows Forms
application.

I want to use several tables on several of my forms--and probably a couple
of data grids. So, from the Data Sources windows, I selected Add New Data
Source.

This pops up the Data Source Configuration Wizard, which allows me to select
which database objects I "want in my dataset."

I'm not clear on if I should select all the objects I want to use in my
application, or if I should just choose those objects I want to use on the
current form (and then do this again for other forms).

Can someone help point me in the right direction?

Thanks.

Jonathan
 
S

sloan

Most times you want to pick the "smaller version of your world"....where the
"world" is your entire database.

So if you wanted to Edit an Employee............and an Employee was able to
be in one department. You would pick the

dbo.Department
dbo.Employee

tables.
Then you could edit the employee AND populate a dropdown box that had all
the departments listed in it.


That's my advice. It becomes very unruly if you put every table into one
dataset(definition).
 
J

Jonathan Wood

Okay, so I guess this means I create another data source when I need to work
with, for example, products data.

Thanks.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top