R
RamChip
I've an ADO.net application I've written in VB.net (standard).
This was my first ADO project and I've finished it. But now I'm going back
into it and trying to clean it up.
In my application I read row info from two MS Access files. One file is
read-only info. The other is read and written to.
In the read-only file, there are Five (5) tables I read info from (one table I
read twice from). This all happens in Form_Load.
IF I bypass all these tables, my application starts fast (3-5 seconds). When
they are enabled, it's sometimes over 30-seconds.
I 'suspsect' it is because I'm opening and closing the MDB file 6 times (not a
big file or lots of rows - several hundred).
Is there a 'benifit' to consolidate some (or all) of my current 6 datasets
into ONE main one?
If so, how do I go about it as I've never attempted this before (note that
some DS's need filtering, etc.) OR should I combine only the ones without
filtering?
Some of the DataSets get binded to things like ComboBoxes, etc. So in these
cases, IF I can combine things, how can I bind them then?
NOTE: that I've done all the Connections, DataSets and DataAdapters via the
Wizard. So I've no real idea on how to do this all by Code lines
Here is what my DS's look like... any help/tips/info... much appreciated:
dsMstrCat - No Sorting
**********************
SELECT Category
FROM MASTER_JCM_STANDARD_CATEGORY
dsMstrEmPay - No Sorting
************************
SELECT Employee, Amount, Pay_ID, Pay_Type
FROM MASTER_PRM_EMPLOYEE_PAY
WHERE (Employee LIKE ? + '%')
dsMstrJobs - Sort by JOB
************************
SELECT Description, Job, Status
FROM MASTER_JCM_JOB_1
WHERE (Status LIKE ?)
ORDER BY Job
dsAllJobs - No Sorting
**********************
SELECT Description, Job
FROM MASTER_JCM_JOB_1
dsMstrCode - Sort by COST_CODE
******************************
SELECT Cost_Code, Description, Group_Cost_Code
FROM MASTER_JCM_STANDARD_COST_CODE
WHERE (Group_Cost_Code LIKE ?)
ORDER BY Cost_Code
dsMstrEmploy - Sort by EMPLOYEE
*******************************
SELECT Chargeout_Level, Class, Employee, Employee_Name, Pay_ID
FROM MASTER_PRM_EMPLOYEE
ORDER BY Employee
This was my first ADO project and I've finished it. But now I'm going back
into it and trying to clean it up.
In my application I read row info from two MS Access files. One file is
read-only info. The other is read and written to.
In the read-only file, there are Five (5) tables I read info from (one table I
read twice from). This all happens in Form_Load.
IF I bypass all these tables, my application starts fast (3-5 seconds). When
they are enabled, it's sometimes over 30-seconds.
I 'suspsect' it is because I'm opening and closing the MDB file 6 times (not a
big file or lots of rows - several hundred).
Is there a 'benifit' to consolidate some (or all) of my current 6 datasets
into ONE main one?
If so, how do I go about it as I've never attempted this before (note that
some DS's need filtering, etc.) OR should I combine only the ones without
filtering?
Some of the DataSets get binded to things like ComboBoxes, etc. So in these
cases, IF I can combine things, how can I bind them then?
NOTE: that I've done all the Connections, DataSets and DataAdapters via the
Wizard. So I've no real idea on how to do this all by Code lines
Here is what my DS's look like... any help/tips/info... much appreciated:
dsMstrCat - No Sorting
**********************
SELECT Category
FROM MASTER_JCM_STANDARD_CATEGORY
dsMstrEmPay - No Sorting
************************
SELECT Employee, Amount, Pay_ID, Pay_Type
FROM MASTER_PRM_EMPLOYEE_PAY
WHERE (Employee LIKE ? + '%')
dsMstrJobs - Sort by JOB
************************
SELECT Description, Job, Status
FROM MASTER_JCM_JOB_1
WHERE (Status LIKE ?)
ORDER BY Job
dsAllJobs - No Sorting
**********************
SELECT Description, Job
FROM MASTER_JCM_JOB_1
dsMstrCode - Sort by COST_CODE
******************************
SELECT Cost_Code, Description, Group_Cost_Code
FROM MASTER_JCM_STANDARD_COST_CODE
WHERE (Group_Cost_Code LIKE ?)
ORDER BY Cost_Code
dsMstrEmploy - Sort by EMPLOYEE
*******************************
SELECT Chargeout_Level, Class, Employee, Employee_Name, Pay_ID
FROM MASTER_PRM_EMPLOYEE
ORDER BY Employee