Professional Documents
Culture Documents
Chapter 4:
DATABASE DESIGN
Database is an important part of the software as it contain all the necessary information to
run the hardware and website. Such as storing the schedule, storing the billing information,
There are a number of databases available but Microsoft's SQL Server is a popular
database software for database-driven web sites with high traffic.SQL Server is a very
SQL Server, Visual Studio, and the entire .NET ecosystem, are built to work
together. While one can use MySQL with .NET, but it doesn't integrate better with
.NET.
SQL Server has better replication support. If you ever need to scale your database
troubles.
SQL Server has more sophisticated per-row locking, and concurrency which means
even though some rows in a table are queried, other rows can still be inserted or
modified concurrently.
[2]
It has Native support for GUIDs as primary keys - if one prefer GUIDs for keys
One of the biggest and important advantage of using SQL Server with Visual
Another advantage is that it is the common choice among the people, and so one
This database will contain all the necessary information for Controlling, billing and graph.
It contains the user details such as ID and password who can access the site.
Table 4.1
[3]
There are 2 series for controlling the lights the voltages for intensity control are stored in
tables in the form of integers which are different for each month depending on the situation
Figure 4.2
[4]
Figure 4.3
Table Series1 and series2 contain all the information which is needed to control the lights
according to the schedule prepared. Here the numbers represents the voltages to be
3 7 75%
4 10 100%
Table 4.1
Table Log:
Table log presents the log values with time how that much voltages were provided to the
Table 4.4
For connecting the database to the visual studio project. First open the database in SQL
server and connect the SQL server instance. After that open the web project in Visual
Add new connection Write the server name then enter the DataBase name
If connection Succeeded then the database is successfully connected to the visual studio
now it is needed to correct the Connection String in the web.config file of the website for