sql - How to store variables for the next time a program runs -
sql - How to store variables for the next time a program runs -
i have programme reports how many times client has visited between our of day. in case, programme runs each day, find out how many customers came in between hours of 6 , 7. problem i'm running need maintain running tally of number of customers visted between hours. need output like:
today: 5 total: 5 today: 5 total: 10 today 5 total 15
i can store info in xml file, have 16 different locations i'm tracking that's lot of writing, , reading xml file, assume there improve way handle this? need programme load value of "total" today, plus previous days.
i fill values this:
firsthour = ds.tables(0).rows(i).item(x) secondhour = ds2.tables(0).rows(i).item(x) percentage = math.round(ds2.tables(0).rows(i).item(x) / ds.tables(0).rows(i).item(x) * 100, 2) firsthourtotal = ds.tables(0).rows(i).item(x) secondhourtotal = ds2.tables(0).rows(i).item(x)
obviously, need fisthourtotal
, secondhourtotal
, stored each of 16 results in array, accessed each day when programme runs.
probably not best way but....
if doing utilize my.settings
, utilize system.collections.specialized.stringcollection
type situation described.
nice , easy read , write to, remember my.settings.save
after writing otherwise wait till close application before updating record!
sql vb.net
Comments
Post a Comment