M
Mr. B
Here's my situation... First off, I'm a complete Newbee when it comes to 'data
bases'. And I'm a week end programmer My appologies if I get a bit too
verbose here
I've VB4 to VB6 experience... and have started using VB.net just this year.
Most of my apps have always used TXT type files for data simply because that
is what I know how to use. Background info is:
But now I'm re-writting a VB6 app to VB.net and need some guidance on WHAT to
use, and where to start as I want to improve it.
My application is kind of like an In/Out daily status. The data per user
(70-100 people) will show Monday to Friday for a 2-week period (current week
and next week) in 1/2 hour increments (8am to 5pm). Each 1/2 hour input is
either a One (1) or Zero (0). And for each day, they'll be able to put is
some text (280 characters limited) for some notes (like: I'm out at
so-and-so's until 4pm). Then of course I'll have the users name. So all in
all, for each user there is 201 "pieces" of information for the 2 week period.
Each user can display a DataGrid which will show all the users In/Out status
on a day-by-day basis (either this week, or next week). Their status is
simply a Red Box (not in) or Green Box (in)... this info is not relivant to my
question, just giving you some background.
At the end of each week (late Sunday night), the "current" weeks info gets
dumped (no longer applicable), the 'next' weeks input (if any) becomes the
'current' week. And new 'blank' data will be built for 'next' week. I'll do
this via another simple application to run on a schedule each week.
Question 1:
My app will have 70-100 users. They'll occasionaly input simple data each day
(but not necessarily all). Depends on if they'll be in or out of the office.
In wanting to keep things simple, in my previous VB6 version, I had it set so
that every User has one TXT file with their data. And each user's app would
read each file.
But I'd like to try to put it all in one file. But because there is a remote
chance that two users could "possibly" be entering their data at the same time
(the input should be relatively fast), I don't want a situation where a file
"LOCK" exists. With individual files, they could write anytime, as other
users would only 'read' their data.
What I did in my previous version, was to read the data into a 3D array such
as --> MyArray(70, 201). Then I could read the data fast and update it
periodically. The "write" to the data part would only be the users info when
they change things.
And of course, I'll have an Administrator who'll be allowed to Add/Remove a
User (and thus, all their applicable info gets blown away too or created).
So what kind of 'simple' _type_ of data base should I use (if you've followed
me so far). One that can allow more than one user to enter data (just in
case). One that is 'simple' to read/write to, create/delete users. Things
like SQL won't do (as we don't have it. Use XLS? I don't know. Someone
suggested DBMS, but I think I'd have to purchase this. I just want something
readily available to me.
Question 2:
Based on Q1 answer... how best to get started? I've 6-7 books on VB.net. But
they don't always show exactly what you want.
Any thoughts/comments would be appreciated.
Regards,
Bruce
bases'. And I'm a week end programmer My appologies if I get a bit too
verbose here
I've VB4 to VB6 experience... and have started using VB.net just this year.
Most of my apps have always used TXT type files for data simply because that
is what I know how to use. Background info is:
But now I'm re-writting a VB6 app to VB.net and need some guidance on WHAT to
use, and where to start as I want to improve it.
My application is kind of like an In/Out daily status. The data per user
(70-100 people) will show Monday to Friday for a 2-week period (current week
and next week) in 1/2 hour increments (8am to 5pm). Each 1/2 hour input is
either a One (1) or Zero (0). And for each day, they'll be able to put is
some text (280 characters limited) for some notes (like: I'm out at
so-and-so's until 4pm). Then of course I'll have the users name. So all in
all, for each user there is 201 "pieces" of information for the 2 week period.
Each user can display a DataGrid which will show all the users In/Out status
on a day-by-day basis (either this week, or next week). Their status is
simply a Red Box (not in) or Green Box (in)... this info is not relivant to my
question, just giving you some background.
At the end of each week (late Sunday night), the "current" weeks info gets
dumped (no longer applicable), the 'next' weeks input (if any) becomes the
'current' week. And new 'blank' data will be built for 'next' week. I'll do
this via another simple application to run on a schedule each week.
Question 1:
My app will have 70-100 users. They'll occasionaly input simple data each day
(but not necessarily all). Depends on if they'll be in or out of the office.
In wanting to keep things simple, in my previous VB6 version, I had it set so
that every User has one TXT file with their data. And each user's app would
read each file.
But I'd like to try to put it all in one file. But because there is a remote
chance that two users could "possibly" be entering their data at the same time
(the input should be relatively fast), I don't want a situation where a file
"LOCK" exists. With individual files, they could write anytime, as other
users would only 'read' their data.
What I did in my previous version, was to read the data into a 3D array such
as --> MyArray(70, 201). Then I could read the data fast and update it
periodically. The "write" to the data part would only be the users info when
they change things.
And of course, I'll have an Administrator who'll be allowed to Add/Remove a
User (and thus, all their applicable info gets blown away too or created).
So what kind of 'simple' _type_ of data base should I use (if you've followed
me so far). One that can allow more than one user to enter data (just in
case). One that is 'simple' to read/write to, create/delete users. Things
like SQL won't do (as we don't have it. Use XLS? I don't know. Someone
suggested DBMS, but I think I'd have to purchase this. I just want something
readily available to me.
Question 2:
Based on Q1 answer... how best to get started? I've 6-7 books on VB.net. But
they don't always show exactly what you want.
Any thoughts/comments would be appreciated.
Regards,
Bruce