Gladimir
Well-known member
I have a table whose sole purpose is to store the last masterID and lastTempID numbers used in other tables. So, the table only has a single row of data two columns wide. The first column holds the lastMasterID and the second column holds the lastTempID.
The application contains various functions that process hundreds of thousands of rows of input tables. These functions might need to get and set the lastMasterID or the lastTempID depending on whether or not new data is found in the input tables.
What is the best / slickest way to setting this up?
I was simple making two public functions called getlastMasterID and getlastTempID that returns the value of the corresponding field.
However, I think a public class that allows me to get and set in the same function might be more efficient (if I am using the correct terminology).
Either way, do I simply create the necessary connection and adapter objects and populate a dataset using the adapters Fill method? Or is that way too much overhead for what I need to do?
The application contains various functions that process hundreds of thousands of rows of input tables. These functions might need to get and set the lastMasterID or the lastTempID depending on whether or not new data is found in the input tables.
What is the best / slickest way to setting this up?
I was simple making two public functions called getlastMasterID and getlastTempID that returns the value of the corresponding field.
However, I think a public class that allows me to get and set in the same function might be more efficient (if I am using the correct terminology).
Either way, do I simply create the necessary connection and adapter objects and populate a dataset using the adapters Fill method? Or is that way too much overhead for what I need to do?