Install SQL Server database on server (Window Server 2019)


1. Install SQL Server database

The database is installed on the server. Of course, for learning, you can also install it on your local computer.
Open the SQL Server download link:
Link: SQL Server official download address.
  You can choose either version here. The Express version is for learning, and the Developer version is more professional. I choose the Express version here.

Open the installer, select Customize:

Click Install:

Wait for the program installation to complete:

Enter the installation interface, select the first item:

Accept, Next, Next:


Uncheck "Azure for SQL Server", Next:

Instance Function , just check the first one. Others are just tools and novices cannot use them. Next step:

The default is fine. Of course, you can also change the name. This is optional. Next step, next step:


Select Mixed Mode here and enter your password. Here is the connection password to connect to the SQL Server database. It is very important. You must remember that you will need it when you use SSMS to manage the database on your computer later (account: sa, password: set by yourself). Next step:

Wait for the deployment to be completed...

As shown in the figure, SQL Server is successfully deployed.

2. Set up to allow remote connections

Find SQL Server 2022 Configuration Manager in the Start menu and open it.

Open "SQLEXPRESS Protocol" under "SQL Server Network Configuration", find TCP/IP on the right, and double-click to open it.
Insert image description here
In the protocol, set "Enabled" to Yes.

In the IP address, scroll to the bottom IPALL and set the TCP port to 1433, because the default port number of SQL Server is 1433. Click OK.

Return to the SQL Server service, right-click SQL Server (SQLEXPRESS) and select Restart.

By the way, the 1433 port number of your server must be open to the outside world. In some cloud servers, this port number is closed by default and needs to be opened manually. For example, mine is an Alibaba Cloud server:

3. Use SQL Server Management Studio to manage SQL Server databases

You can find the official download link by searching for SSMS on the Internet. Of course, you can also use the following official link:
Link: SSMS official download address.
Just click to download.

After the download is completed, the installation is very simple and will not be demonstrated here. After installation, the following interface will appear:

After opening, there will be a dialog box to connect to the server.
Fill in the public IP address of your server for the server name here, select "SQL Server Authentication" for authentication, fill in the login name: sa, and the password: the password you filled in before.

As shown in the figure, the connection is successful

and you can try to create a new database.
Insert image description here

Guess you like

Origin blog.csdn.net/qq_44284055/article/details/130379632