Doubt in using several Datasets in same project?
-
hi all i have a doubt, that when i have several "select" queries for different tables, different criterias in same table, SHOULD I USE seperate DATASETS for each query? pls reply me. since i did like that, so that the no of datasetsi increased in my proj? pls suggest? thanks in adv
kssk
-
hi all i have a doubt, that when i have several "select" queries for different tables, different criterias in same table, SHOULD I USE seperate DATASETS for each query? pls reply me. since i did like that, so that the no of datasetsi increased in my proj? pls suggest? thanks in adv
kssk
if you have several queries with the same result you should recycle your DataTable - so no in this case don't use multiple Datasets. If you query different Tables the answer depends on your taste - I tend to use one DataSet for Tables in the same "category" on the same Database so I never get more then 2-3 datasets in my projects - but sometimes people use one dataset for each table ....
-
hi all i have a doubt, that when i have several "select" queries for different tables, different criterias in same table, SHOULD I USE seperate DATASETS for each query? pls reply me. since i did like that, so that the no of datasetsi increased in my proj? pls suggest? thanks in adv
kssk
You shouldn't have to have separate datasets for each query. If you are using the same tables and fields, you can have different Fill, Get methods for each query.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon