R
Richard Fagen
Hi Everyone,
I have been writing xBase applications for many years but I am new to
VB/SQL for larger applications.
In xBase, I would start the main program (form) by opening up all the
datafiles (dbf) and indexes (cdx) that I would need to reference
throughout the application. I would also keep these files open
throughout the application.
I know how to declare and use SqlConnection, SqlDataAdapter, DataSet to
get a simple grid on a form. My problem occurs when I want to have many
different tables opened (many filtered) through out the application.
My questions:
- What is the equivalent way to do this in VB? (open several tables at
the start)
- Where and how do I declare the connections (SqlCon, DataAdapters,
Datset)? At the top of the main form? In a code module? As public
variable?
- Is it best to filter and sort tables via DataViews?
Thanks
Richard
I have been writing xBase applications for many years but I am new to
VB/SQL for larger applications.
In xBase, I would start the main program (form) by opening up all the
datafiles (dbf) and indexes (cdx) that I would need to reference
throughout the application. I would also keep these files open
throughout the application.
I know how to declare and use SqlConnection, SqlDataAdapter, DataSet to
get a simple grid on a form. My problem occurs when I want to have many
different tables opened (many filtered) through out the application.
My questions:
- What is the equivalent way to do this in VB? (open several tables at
the start)
- Where and how do I declare the connections (SqlCon, DataAdapters,
Datset)? At the top of the main form? In a code module? As public
variable?
- Is it best to filter and sort tables via DataViews?
Thanks
Richard