A
arby
Hi There.
I having searched the groups/web for awhile looking for some insight
but can't seem to get a solid answer.
I have a DataSet that is loaded once my application starts through a
stored procedure call (basically "Select * FROM..."). Anyways, later
on in the application I want to get a subset of this dataset and was
wondering what the best practice is for achieving this goal.
I figure I have two options, at least:
1) Use the .Select method of the DataSet to filter my cached DataSet
and just return this filtered version.
2) Requery the database, calling a specialized store procedure
(basically "Select * FROM ... WHERE ...").
My gut feel is that 2) is preferred simply because that's what SQL is
built to do. However, I'm relatively new to .NET and since I'd imagine
this is a common goal I was thinking it might be optimized to also
perform such actions, and since it's locallized and in memory maybe
it's better?
Thanks in advance,
Jason
I having searched the groups/web for awhile looking for some insight
but can't seem to get a solid answer.
I have a DataSet that is loaded once my application starts through a
stored procedure call (basically "Select * FROM..."). Anyways, later
on in the application I want to get a subset of this dataset and was
wondering what the best practice is for achieving this goal.
I figure I have two options, at least:
1) Use the .Select method of the DataSet to filter my cached DataSet
and just return this filtered version.
2) Requery the database, calling a specialized store procedure
(basically "Select * FROM ... WHERE ...").
My gut feel is that 2) is preferred simply because that's what SQL is
built to do. However, I'm relatively new to .NET and since I'd imagine
this is a common goal I was thinking it might be optimized to also
perform such actions, and since it's locallized and in memory maybe
it's better?
Thanks in advance,
Jason