G
Guest
Hi All
Wondering if someone might have a few seconds to clear up some newbie
queries I have with VB.NET and ADO.NET. I know their are limitless
situations that require different approaches but would love to know some of
the fundementals as a place to start. Have been through quite a few examples
but are unsure about the following.
1. For a simple database with a couple of tables do you create a
dataadapter for each table and then create a dataset that includes each of
these tables?
2. Do you use the same adapters and datasets througout the application on
different forms? If so how do you make them available to the other forms if
you have used the wizard to create them?
3. Is it best to reference rows/records by ID number in the table or the
row index?
4. Should you link tables in the database using views/queries in the
database or by creating a separate datatable in the dataset that joins the
tables from the database?
5. Any other advice on best practices for learing this stuff.
Appreciate any assistance.
ilr
Wondering if someone might have a few seconds to clear up some newbie
queries I have with VB.NET and ADO.NET. I know their are limitless
situations that require different approaches but would love to know some of
the fundementals as a place to start. Have been through quite a few examples
but are unsure about the following.
1. For a simple database with a couple of tables do you create a
dataadapter for each table and then create a dataset that includes each of
these tables?
2. Do you use the same adapters and datasets througout the application on
different forms? If so how do you make them available to the other forms if
you have used the wizard to create them?
3. Is it best to reference rows/records by ID number in the table or the
row index?
4. Should you link tables in the database using views/queries in the
database or by creating a separate datatable in the dataset that joins the
tables from the database?
5. Any other advice on best practices for learing this stuff.
Appreciate any assistance.
ilr