Install SQL Server 2022
Install SQL Server 2022
This report covers the installation process of SQL Server on a MacBook, which differs from the
process on Windows. One of the main challenges I faced was finding the correct installation
steps and codes, as many websites and YouTube videos were outdated. I spent a lot of time
searching for reliable resources to help me connect the SQL Server to Azure Data Studio, but I
kept encountering error messages. I repeatedly deleted and installed the applications and
codes, trying to figure out the issue. Therefore, in this report, I will outline the updated
successful installation process for 2024. For the installation process, I followed this Youtube
video https://www.youtube.com/watch?v=3BFxALltQaM
The First step is to download docker, search for docker on the google search tab and click the
first link.
The second step is to click the Apple logo in the upper left-hand corner of the screen and select
About This Mac. In my case, it showed 'Intel,' so I downloaded Docker Desktop for Mac with
Intel Chip. If your screen shows Apple under ‘About This Mac,' then you should download
Docker Desktop for Mac with Apple Silicon.
For the third step after signing in this will show up, click on the settings icon then under
‘resources tab’ make sure the memory limit is 4GB
For the fourth step is downloading the Azure Data Studio, look for the MacOS zip file and select
Intel Chip to download Azure.
For the fifth step on Google, search azure-sql-edge docker then click on the first link which is
by Docker Hub.
For the sixth step, on the right hand side click on Copy under Docker Pull Command.
Then for the seventh step, you open terminal by searching it in spotlight search. Then paste the
command, click enter to download the image. After it finishes downloading, you’ll see
mcr.microsoft.com/azure-sql under ‘Images’ on the left hand tab.
Then for the eight step, to have the sql container in the image shown above, I typed the code in
‘terminal’ docker run -e "ACCEPT_EULA=1" -e "MSSQL_SA_PASSWORD=Chua123$" -e
"MSSQL_PID=Developer" -e "MSSQL_USER=SA" -p 1433:1433 -d --name=sql
mcr.microsoft.com/azure-sql-edge and my password is ‘Chua123$’
For your password you should make sure it contains at least 8 characters and contain
characters from three of the following four sets: Uppercase letters, Lowercase letters, Base 10
digits, and Symbols or else you will see this error message:
For the ninth step, make sure that the sql under the ‘Containers’ tab is running by clicking
under actions to connect this to Azure.
For the tenth step, I clicked on new connection after that I filled the blanks, and for password I
used ‘Chua123$’ which I encoded before in terminal.
Click on Enable Trust server certificate to connect