In this article, I have provided step by step procedure to download and install SQL server express database in your machine. You can install or download SQL server other versions in similar way but as Express is free to use edition and works for entry level ot test databases, which I am going to use it for this article.

SQL server express is free to use edition of SQL server, so yes, even if you have small website to manage it, you can use it for free without paying anything.

There are various odler version of SQL server express, we will be using latest one, that is SQL server Express 2019, you can download Express 2016 or 2017 and follow the same procedure of installation, but it is recommended to install latest version.

Step 1: Download SQL server Express from here: https://www.microsoft.com/en-in/sql-server/sql-server-downloads

download-install-sql-server-express-min.png

Once you have downloaded the Express or Developer version (I am using Express version in this post), double click on the downloaded file and run the setup.

Step 2: Select "Custom" Installation

select-custom-install-sql-server-min.png

Once you have selected "Custom" installation, you will see sreen with path of the default installation, click on "Browse" if you want to change the installation location, if not , click "Install"

click-install-sql-server-step-min.png

Once you will click install, SQL server installation wizard will download file, and you will see screen like below

install-sql-server-express-windows-min.gif

Step 3: Once the download is completed, a new screen will appear with title "SQL server Installation Center", Select "New SQL server stand-alone installation or add features to existing installation"as shown below

install-sql-server-installation-feature-standalone-min.png

Once you will click on the above button, you will screen as below, "Accept" the license and click "Next"

image-installation-min.png

You can mark the checkbox for auto-update or click on Next without checking it, but it is recommended to enable updates.

image-installation2-min.png

Once you will click on Next, you will see image as shown below

/image-installation3-min.png

let the SQL server setup scan for updates and other things, click "Next" once procedure is finished.

image-installation4-min.png

After the above screen, you will see installation details, in which all the features which will be installed are checked.

You can install "LocalDB" if you want to but in this example, I am not installing it.

image-installation5-min.png

Note: You can De-select "Machine learning Services and Languages Extension", checkbox, if you don't want to install Python,Java or R support.

Click "Next", Once you are done with the above screen.

image-installation6-min.png

In the Next screen you can scpecify SQL server instance ID or you can use "Default Instance", I am using Default one, Click "Next", once you are done.

On next Screen, if you have already installed JRE or JDK, specify the location of click on "Next"

image-installation7-min.png

Click on "Next", let the all services start automatically.

image-installation8-min.png

Now, this one is important step, If you want to enable "Mixed Mode", means if you want to login using SQL server user name (sa) and not just "Windows authentication mode", enable Mixed mode.

I have enabled it, and once we "Check" Enable mixed mode, you need to enter password and confirm password. (remember this password as it is will used to login into SQL server)

Once done, click on "Next"

image-installation9-min.png

To install Microsoft R, click "Accept" and then "Next"

image-installation10-min.png

If you have installed addtional feature, you might see more similar screen, click "Accept" in all screens and then "Next"

/install-sql-server-2019-express-min.gif

Once all features are installed, you will see the installation procedure is complete.

/install-complete-min.png

You might have to restart your system now. Once you have re-started it, you can login into SQL server 2019 using SSMS (SQL server management Studio), here is the demo of it.

download-install-sql-server-database-express-min.gif

That's it, as you can see in above SSMS, we have installed SQL Server 2019 database in out system.

Related:

How to check SQL server version? (Various ways explained)

Connect to SQL Server in C# (example using Console application)

SQL server connection string examples in C# & XML

Where can I download SQL server 2016 express full?

Aggregate Functions in SQL Server (SUM, AVG, COUNT, MIN, MAX)