Introduction
The last several versions of Microsoft’s SQL server have seen the introduction of a number of new features. However, not all users will find these necessary, and many may wish to turn to the more lightweight SQL Server Express instead.
In this tutorial we offer a step-by-step guide to installing, testing, upgrading, and uninstalling SQL Server Express 2019.
Prerequisites
- A system running Windows 10
- Access to an administrator-level account
- Access to the command prompt
What Is SQL Server Express
SQL Server Express is a free version of Microsoft’s SQL Server. This version comes with limited features, having a 10 GB maximum database size and no SQL Server Agent support. Because of this, it is best suited for lightweight, data-driven applications.
SQL Express Installation Guide
The following guide describes the step-by-step process of installing and testing your SQL Server Express.
Step 1: Download SQL Server Express
1. Visit the download SQL Server Express page on the official Microsoft website.
2. Scroll down until you find the Express edition of SQL Server 2019.
3. Click Download now to start the download.
Step 2: Run the Installation
Once the download is complete, open the download folder and find the installation file. Run the file to start the installation process.
Note: The default name for the installation file is SQL2019-SSEI-Expr.exe.
Step 3: Choose the Installation Type
1. After starting the install process, you can choose between three installation types.
- The Basic installation is the quickest, and it installs the default configuration of SQL Server Database Engine.
- The Custom installation allows you to specify the install location. It also lets you customize which features are installed.
- The Download Media installation lets you download the setup files for an offline installation. You can choose the version of SQL Server Engine you want to download.
2. For this tutorial, we are using the Custom installation type. Click the center tile to choose this option.
3. Specify the install location and click Install to start downloading the setup files.
Depending on your download speed, this process might take some time.
Step 4: Follow the Screens to Install SQL Server Express
Once the wizard is done downloading the install package, it opens the SQL Server Installation Center. This window offers an array of different tools used to install and manage your SQL server.
1. Select the New SQL Server stand-alone installation or add features to an existing installation option to start the install process.
2. The following screen gives you an overview of the SQL Express Server license terms. Check the box next to I accept the license terms and Privacy Statement and click Next to continue.
3. Check the box next to Use Microsoft Update to check for updates to include updates to SQL Server 2019 in the scheduled Windows updates. Click Next to continue.
4. The Install Rules screen helps identify potential problems with the installation. Any entries showing a Failed status must be resolved before you proceed with the installation. If there are no failed entries, click Next to continue.
5. On the Feature Selection screen, check the boxes in the Features section to choose which elements of SQL Server 2019 to install, and define the install directories. Click Next to continue.
6. The Instance Configuration screen lets you choose between the default and custom instance names. For this tutorial, we are using the Named instance option and keeping the default suggested names. Click Next to continue.
7. The following screen lets you install Java with the current installation or specify a path if you already have it installed. Click Next to continue.
8. The Database Engine Configuration screen lets you specify the authentication mode for your SQL server. For this tutorial, we are using the Mixed Mode option and adding the current user as an administrator. Click Next to continue.
9. The next two screens require you to consent to installing Microsoft R Open and Python, respectively. Click Accept and Next on both to continue.
The following screen displays the current installation progress.
10. Once the installation is complete, the new screen displays an overview of the installed features. Click Close to finish the installation.
Note: Make sure to restart your computer for the changes to take effect.
Step 5: Test connection to SQL Server Express
There are two ways to test your connection to SQL Server Express:
- Using the SQL Server Management Studio.
- Using the command prompt.
1. Start by downloading the SQL Server Management Studio. Scroll down to the Download SSMS section and use the provided link.
2. Open the installation file and click Install to start the setup.
4. Once the setup is complete, click Close to exit.
5. Run SQL Server Management Studio.
6. In the login window, choose the SQL Server Authentication option and use the default Login (sa) and the password you set up during the SQL Server 2019 setup.
7. Click Connect to try to connect to the server.
If the login window closes without any issues and you have access to the SQL Server Management Studio main window, this means the connection works properly.
8. Another way to test the connection to the server is to use the following commands in the command prompt:
sqlcmd -S [computer name]SQLEXPRESS
select @@version
go
For this tutorial, the computer name we are using is DESKTOP-TUK3DNQ:
How to Update SQL Server Express
The update process for SQL Server Express is similar to installing the application from scratch. In this example, we are upgrading from SQL Server 2017 to SQL Server 2019:
1. In the SQL Server Installation Center window, select the Upgrade from a previous version of SQL Server option.
2. After the installation searches for online updates, click Next to continue.
3. Check the box next to I accept the license terms and Privacy Statement and click Next to continue.
4. Select the SQL Server instance you want to update from the drop-down menu and click Next to continue.
5. Give consent to install Microsoft R Open and Python by clicking Accept and then Next on the following two screens.
6. On the Server Configuration screen, click Next to continue with the update.
7. The Full-text Upgrade screen offers different options for upgrading your full-text catalogs. Select the Rebuild option and click Next.
8. Once the update is complete, click Close to exit the update window.
How to Uninstall SQL Server Express
1. To uninstall SQL Server Express, start by navigating to Start > Settings > Apps and finding the entry called Microsoft SQL Server 2019 on the app list.
2. Select the entry and click Uninstall.
3. Select the Remove option in the uninstall window.
4. Select the SQL instance you want to remove in the drop-down menu. Click Next to continue.
5. Select the features you want to uninstall. Click the Select All button to make sure you remove all of the features, then click Next to continue.
6. The following screen gives an overview of the features to be removed. Click Remove to start the uninstall process.
7. Once the uninstall process is complete, click Close to exit the uninstall window.
Conclusion
After following this tutorial, you should have a fully functional copy of SQL Server Express 2019 installed and ready to use. You will also be able to upgrade or uninstall your copy of SQL Server Express 2019.
For more insightful tutorials, see our Windows tutorials.
Đăng ký liền tay Nhận Ngay Bài Mới
Subscribe ngay
Cám ơn bạn đã đăng ký !
Lỗi đăng ký !
Add Comment