iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
💽

How to Install SQL Server Express

に公開

To safely store "user information" and "financial data" for applications like household account books, let's install a Database Management System (DBMS).

What is SQL Server Express?

It is a free version of the highly reliable "SQL Server" database provided by Microsoft.

  • Free for commercial use: It is free not only for personal development but also for small-scale business use.
  • Sufficient specs: Up to 10GB of storage per database. For a household account book app, you will have plenty of room even after storing years or decades of data.
  • Compatibility with Visual Studio: As both are Microsoft products, integration settings are very simple.

💡 Comparison with other databases (SQLite)

Item SQL Server Express SQLite
Type Server-based (runs in the background) File-based (just a file)
Concurrent connections Strong (can be used by the whole family at the same time) Weak (primarily for single-user use)
Management tools Powerful (has a dedicated tool called SSMS) Simple tools only
Use case Suitable for full-scale Web apps/business apps Suitable for smartphone apps/simple tools

Installation Steps

Downloading the installer

  1. Access the SQL Server download page.

https://www.microsoft.com/ja-jp/sql-server/sql-server-downloads

  1. Click "Download now" under the "Express" edition near the bottom.

Running the installation

  1. When you run the downloaded file, a screen will appear to select the installation type.
  2. Select "Basic." (This is the most reliable for beginners)
  3. Click "Accept" on the license terms.
  4. Check the installation location and start the installation by clicking "Install."

Installing SSMS (SQL Server Management Studio)

  1. Click the "Install SSMS" button on the installation completion screen.
  2. A browser will open; download and execute from the free SSMS download link.
  3. Visual Studio will launch. Click "Install" on the bottom right.
  4. Restart your PC.

How to verify it works

  1. Launch "SQL Server Management Studio (SSMS)" from the Start menu.
  2. Confirm that (localdb)\MSSQLLocalDB or .\SQLEXPRESS is entered in the "Server name" under "Browse" → "Local."
  3. Confirm that "Encryption (E)" in the center is set to "Mandatory."
    Click the "Trust server certificate (T)" checkbox right below it to check it.
  4. Leave "Windows Authentication" selected and click "Connect."
  5. If folders like "Databases" appear on the left, it is working normally.

Discussion