New to databases need help
-
what i want to do is a very basic database. the program will have some check boxes and depending on whats checked a list box will display certain items. i thought a database would work good for this. i tryed useing a txt file and stringreader and a array to sort the data but was having problems if someone knows a good place to learn how to do thise type of things please tell me:) also i tryed a database but it needs you to register the database file with windows.. I dont what to do this becouse i will be usen this program on differnt computers. so is there a simple db that can be moble
-
what i want to do is a very basic database. the program will have some check boxes and depending on whats checked a list box will display certain items. i thought a database would work good for this. i tryed useing a txt file and stringreader and a array to sort the data but was having problems if someone knows a good place to learn how to do thise type of things please tell me:) also i tryed a database but it needs you to register the database file with windows.. I dont what to do this becouse i will be usen this program on differnt computers. so is there a simple db that can be moble
-
what i want to do is a very basic database. the program will have some check boxes and depending on whats checked a list box will display certain items. i thought a database would work good for this. i tryed useing a txt file and stringreader and a array to sort the data but was having problems if someone knows a good place to learn how to do thise type of things please tell me:) also i tryed a database but it needs you to register the database file with windows.. I dont what to do this becouse i will be usen this program on differnt computers. so is there a simple db that can be moble
-
What information are you trying to store/retrieve? From your description, it sounds like you may be able to handle what you want in code.
its a tree id program.. they will have options thu check boxes ( usless theres a better way) like needles or board leaf. shape, location ect.. i was thinking database becouse there are a ton of differnt types of trees. and to code them all in would be a pain later on if i wanted to edit them. Edit: I had a simple version of what i want to do in c++. i was trying to remake it and add to it useing c# im new to c# and databases thu so its a learning experiance.
-
its a tree id program.. they will have options thu check boxes ( usless theres a better way) like needles or board leaf. shape, location ect.. i was thinking database becouse there are a ton of differnt types of trees. and to code them all in would be a pain later on if i wanted to edit them. Edit: I had a simple version of what i want to do in c++. i was trying to remake it and add to it useing c# im new to c# and databases thu so its a learning experiance.
So you will be keeping the trees in the database and based on which characteristics are checked, the matching tree will show in the listbox? And you are using a listbox for the trees because you also want the user to be able to choose a tree and see the characteristics in the checkboxes? You will need to establish the database first. You can use Access to set up your database. Once it's setup you just need to copy the database file to wherever you want it to go, you won't need Access after it's setup, except to make changes to the database. Your program will be able to run on computers without Access. If you can't use Access, you can try to set it up using another database program and copy the database file to where you want to work with it. I don't see why that wouldn't work.
-
So you will be keeping the trees in the database and based on which characteristics are checked, the matching tree will show in the listbox? And you are using a listbox for the trees because you also want the user to be able to choose a tree and see the characteristics in the checkboxes? You will need to establish the database first. You can use Access to set up your database. Once it's setup you just need to copy the database file to wherever you want it to go, you won't need Access after it's setup, except to make changes to the database. Your program will be able to run on computers without Access. If you can't use Access, you can try to set it up using another database program and copy the database file to where you want to work with it. I don't see why that wouldn't work.
Right it will only show what trees match what is checked and display those. And if you click a tree it would show what it has. yes i have access. im in college right now ( not a very good one) thats why im here asking questions.. but anyways in school when we did databases we had to go into the ODBC and setup the path of the database. i asked my teacher about c# she said she heard of c# but knew nothening more ( im changing schools ) so thats where im at im not sure what to use to have my program to read from the database without all the extra setup each time I put this program on a differnt computer. I wont lie im really new to database stuff and im willing to buy books or what ever if you know of any good ones.
-
Right it will only show what trees match what is checked and display those. And if you click a tree it would show what it has. yes i have access. im in college right now ( not a very good one) thats why im here asking questions.. but anyways in school when we did databases we had to go into the ODBC and setup the path of the database. i asked my teacher about c# she said she heard of c# but knew nothening more ( im changing schools ) so thats where im at im not sure what to use to have my program to read from the database without all the extra setup each time I put this program on a differnt computer. I wont lie im really new to database stuff and im willing to buy books or what ever if you know of any good ones.
I am new to writing programs that access database files myself. I have found the books from Murach publishing to be very useful, although I am learning VB.NET. They do have a C# book that covers databases ADO.NET. Their examples usually use SQL, just replace sql with oledb and it should work. I have also just begun to learn how to deploy an applications, so I don't know all the ins and outs, but I have my database in its own folder on the C drive and I install this folder on the C drive on the computers I want to run the program, so the reference in the connection remains the same. There is probably a way of doing this automatically through the setup program, but I haven't learned that yet.