W
web1110
I have a SQL table that has a bunch of data in it. For a particular
execution, some subset of that data is is relevant and is downloaded into a
DataSet table. Now, all the information is available.
At different times during program execution, various rows from the table
will need to be referenced. The accessing order is random. The data is
accessed via unique keys in the table.
What is the best way to accomplish this?
A. Is there a way for me to perform queries on the DataTable? I'm not
aware of this capability.
B. Should I unload the table into a sorted list indexed by the key - I
tink this is the solution I need?
C. Always query the database for the required row - wasteful and
unnecessary.
execution, some subset of that data is is relevant and is downloaded into a
DataSet table. Now, all the information is available.
At different times during program execution, various rows from the table
will need to be referenced. The accessing order is random. The data is
accessed via unique keys in the table.
What is the best way to accomplish this?
A. Is there a way for me to perform queries on the DataTable? I'm not
aware of this capability.
B. Should I unload the table into a sorted list indexed by the key - I
tink this is the solution I need?
C. Always query the database for the required row - wasteful and
unnecessary.