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
- Access the SQL Server download page.
- Click "Download now" under the "Express" edition near the bottom.
Running the installation
- When you run the downloaded file, a screen will appear to select the installation type.
- Select "Basic." (This is the most reliable for beginners)
- Click "Accept" on the license terms.
- Check the installation location and start the installation by clicking "Install."
Installing SSMS (SQL Server Management Studio)
- Click the "Install SSMS" button on the installation completion screen.
- A browser will open; download and execute from the free SSMS download link.
- Visual Studio will launch. Click "Install" on the bottom right.
- Restart your PC.
How to verify it works
- Launch "SQL Server Management Studio (SSMS)" from the Start menu.
- Confirm that (localdb)\MSSQLLocalDB or .\SQLEXPRESS is entered in the "Server name" under "Browse" → "Local."
- Confirm that "Encryption (E)" in the center is set to "Mandatory."
Click the "Trust server certificate (T)" checkbox right below it to check it. - Leave "Windows Authentication" selected and click "Connect."
- If folders like "Databases" appear on the left, it is working normally.
Discussion