Toan Hoang

SQL101 / Relational Database Management Systems

A lot of SQL tutorials go through the ins and outs of writing SQL Statements, however, I wanted to do something slightly different and more comprehensive in this tutorial set. I want to walk you through the end-to-end steps of installing a Relational Database Management System (RDBMS) which will be Microsoft SQL Server Express, and with subsequent tutorials teach you:

Relationship Database Management Systems

A relational database management system (RDBMS) is a database management system (DBMS) based on the relational model invented by Edgar F. Codd at IBM’s San Jose Research Laboratory. Edgar F. Codd produced 12 rules as part of a personal campaign to prevent the vision of the original relational database from being diluted, as database vendors scrambled in the early 1980s to repackage existing products with a relational veneer, rule 12 was particularly designed to counter such a positioning.

However, many of the early implementations of the relational model did not conform to all of Codd’s rules, so the term gradually came to describe a broader class of database systems, which at a minimum:

The first systems that were relatively faithful implementations of the relational model were from:

The first system sold as an RDBMS was Multics Relational Data Store (1978). Ingres and IBM BS12 followed.

According to DB-Engines, in June 2018, the most widely used systems were Oracle, MySQL (Free software), Microsoft SQL Server, PostgreSQL (Free software), IBM DB2, Microsoft Access, and SQLite (Free software). Thankfully, Microsoft SQL Server comes with an Express Edition.

Microsoft SQL Server

Microsoft SQL Server is a relational database management system developed by Microsoft. As a database server, it is a software product with the primary function of storing and retrieving data as requested by other software applications—which may run either on the same computer or on another computer across a network (including the Internet).

Microsoft SQL Server Express is a version of Microsoft’s SQL Server relational database management system that is free to download, distribute and use. It comprises a database specifically targeted for embedded and smaller-scale applications. The product traces its roots to the Microsoft Database Engine (MSDE) product, which was shipped with SQL Server 2000. The “Express” branding has been used since the release of SQL Server 2005.

SQL Server Express provides many of the features of the paid, full versions of Microsoft SQL Server database management system. However, it has technical restrictions that make it unsuitable for some large-scale deployments. Differences in the Express product include:

Unlike the predecessor product, MSDE, the Express product does not include a concurrent workload-governor to “limit performance if the database engine receives more work than is typical of a small number of users”. SQL Server Express includes several GUI tools for database management. These include:

Installing Microsoft SQL Server Express

Let us get started by downloading Microsoft SQL Server Express from the Microsoft official website: https://www.microsoft.com/en-ie/sql-server/sql-server-editions-express

To install:

Congratulation, you have installed Microsoft SQL Server Express Edition, now we will install SQL Server Management Studio that will give you a fantastic user interface to interact with your newly minted SQL Server Database.

SQL Server Management Studio (SSMS)

SQL Server Management Studio (SSMS) is a software application first launched with Microsoft SQL Server 2005 that is used for configuring, managing, and administering all components within Microsoft SQL Server. The tool includes both script editors and graphical tools which work with objects and features of the server.

A central feature of SSMS is the Object Explorer, which allows the user to browse, select, and act upon any of the objects within the server. It also shipped a separate Express edition that could be freely downloaded, however recent versions of SSMS are fully capable of connecting to and manage any SQL Server Express instance. Microsoft also incorporated backwards compatibility for older versions of SQL Server thus allowing a newer version of SSMS to connect to older versions of SQL Server instances.

To install:

Once your machine has restarted:

Congratulations, now have installed Microsoft SQL Server Express and connected to it via Microsoft SQL Server Management Studio.

AdventureWorks

AdventureWorks is a sample database provided by Microsoft; for our SQL tutorials, we will make use of this so we need to set this up on your locally installed Microsoft SQL Server database.

To start we will download the provided database backup files and restore them to your locally installed SQL Server database:

Now for the restore:

Note: Restore the two files separately so that we have two databases afterwards.

Summary

Congratulations, we have now:

We will cover relational and dimensional modelling in other articles, but in the next part of this SQL introductory series, we will cover the basics of the SQL Data Manipulation Language (DML).

I hope you enjoyed this article and, as always, let me know what you thought about this and what other things you would like me to write about.

Extra Credit

Sources

Exit mobile version