0% found this document useful (0 votes)
28 views

Summary of Steps To Setup SQL Server Lab Environment - Mac - v1

This document provides steps to install SQL Server Express 2017, download the AdventureWorks sample database, and import the sample database into Azure Data Studio on Mac OS. The steps are: 1. Install SQL Server Express 2017 using Docker 2. Download the AdventureWorks2017 sample database backup file 3. Install Azure Data Studio, add a connection to the SQL Server container, enable preview features, and restore the sample database backup file.

Uploaded by

Chizzyen Shaded
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Summary of Steps To Setup SQL Server Lab Environment - Mac - v1

This document provides steps to install SQL Server Express 2017, download the AdventureWorks sample database, and import the sample database into Azure Data Studio on Mac OS. The steps are: 1. Install SQL Server Express 2017 using Docker 2. Download the AdventureWorks2017 sample database backup file 3. Install Azure Data Studio, add a connection to the SQL Server container, enable preview features, and restore the sample database backup file.

Uploaded by

Chizzyen Shaded
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Summary of Steps (Mac OS)

1. Install SQL Server Express 2017 Database Engine


2. Download AdventureWorks sample database
3. Install Azure Data Studio and import sample database

1. Install SQL Server Express 2017 Database Engine


A. Follow this link to download and install docker desktop
https://hub.docker.com/editions/community/docker-ce-desktop-mac?tab=description
B. Open a terminal and type in the following command: docker run -e 'ACCEPT_EULA=Y' -e
'SA_PASSWORD=YourStrongPassword' -p 1433:1433 --name sqlserver -d
mcr.microsoft.com/mssql/server:2017-latest

C. Docker will download the image and create a new container


D. Once completed you will see the container in then images section of the docker desktop app,
make sure the container is started

2. Download AdventureWorks Sample DB


A. Follow this link to download the Sample Database we will be using
https://docs.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-
server-ver15&tabs=data-studio Make sure to Select AdventureWorks2017.bak under OLTP
as shown below
B. To ease copying the file to your docker container, save the downloaded file directly on your
root drive (screenshot below is for windows)

C. Open your terminal and type in the below command to get the container id of your sql
server installation
Docker ps

D. Use the container id to copy the AdentureWorks2017.bak backup file to the container using
the below command
docker cp AdventureWorks2017.bak 8102c62b7571:/AdventureWorks2017.bak
3. Install Azure Data Studio and Import Sample Database
A. Follow the link below to download and Install Azure Data Studio for your Operating System
https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-
studio?view=sql-server-ver15 select the recommended option for your OS
B. Accept the license agreement and follow the default options to install
C. After successful installation, launch Azure Data Studio and click on the top left icon or New
Connection to add your database server

D. Fill the details as below:


Connection type: Microsoft SQL Server
Server: localhost
Authentication Type: SQL Login
Username: sa
Password: the password you chose to replace YourStrongPassword' in section 1:B
E. Follow this link to enable preview features in Azure data Studio
https://docs.microsoft.com/en-us/sql/azure-data-studio/preview-features?view=sql-server-
ver15
F. Click on the restore menu to restore the database we downloaded previously in 2.B

G. In the restore window, Select Restore from: Backup File, browse and select the backup file
then click on OK, then click on Restore (tip: save the file directly on your C: drive for easy
access)

H. Open the Server pane and expand the Tree to see the imported database

You might also like