

Data report in vb net code#
Stored ProceduresĪ Stored Procedure is a sequence of SQL code that can perform tedious tasks quickly. More information on Views can be found here. This means that we can create a view based on a query and it will not affect any data that is stored. More information on database queries can be found here. I will delve deeper into this in my next article (Extracting data). You usually have to write a query to extract the needed information from the appropriate tables.
Data report in vb net how to#
Now that we know where and how to store data, we need to know how to access that data. More information on Database tables can be found here. This is not really the main topic of today’s article, so let me not get ahead of myself (as always) again. A relationship becomes possible when there is a Primary key inside one table referencing a Foreign key. This forms a relationship between tables. If you look closely at the above tables in Figure 2, you will see that inside each table there is a reference to another table’s field. There is more than enough space to store the student’s personal information, as well as more than enough space for custom courses and custom subjects.Īll of these tables are connected by a term called relationships. This system has been running successfully for twelve years already. An inexperienced programmer would add all the fields into one table, which is possible, but is also wrong. The reason I show this here is to show you that a simple program can make use of multiple inter-connected tables. Its whole purpose is to track student progress according to which course the student is doing. This is from one of my programs that I had to implement at work. Let me give you another example:įigure 2 – Database Tables used productively This means that the least amount of fields and the least amount of tables used in your database will amount to the best performance. This database we will create a bit later.Īlthough you may have many columns in each table and many tables at your disposal in a database, it doesn’t mean that you have to make use of all of them. In the above figure, you can see that there are seven records and three fields. Here is a small example of records and fields. A column, or field is once piece of information. A row, or record contains all the information pertaining to one topic. A table consists of rows (records) and columns (fields). This is where all the information will be stored. Tables are the main building blocks of any database. People that fail to do this get eaten up by the database monster.Ī database consists of the following objects (I will not go into great detail on all of them, as this is only an introduction): Knowing how to properly store inside them takes practice, and lots of planning. A database’s sole function is to store information, hence the name: data base.

Databasesĭatabases can be friendly creatures if you know how to use them right they can also become very bad, especially if you have no idea on how to use them properly. Today I will demonstrate how to make a very basic database and which tools Visual Studio 2012 provides for working with a database. Everyone thinks poor old Nessie and Big Foot are terrible and something to be scared of well, databases are not scary, just misunderstood. A legendary creature called the Loch-Ness Monster, or even Big Foot comes to mind here. Some programmers know about them, but haven’t worked with them physically. Databases seem to be mysteriously strange creatures for many young aspiring programmers.
