

Once the database is restored, you will be able to see the details of the database (see screenshot below). The Detected DB information will be displayed (see below).

At the bottom, type /var/opt/mssql/data if its not already present, and expand the Data option in the part of the window above. In the Backup file path field that comes up as soon as you select the above option, select the three dots to enter the Select a file screen. You will get a window such as the one shown below:Ĭlick on Restore from and select Backup file. If all goes well, you will now be connected as per the steps given above.Įxpand Databases, right click on Test DB and select restore.
#SQL SERVER CLIENT TOOL FOR MAC PASSWORD#
Provide the password for the sa user that you have given in the command line above. Open Azure Data Studio and click on New connection. The steps below are to be executed on Azure Data Studio, installed on your MacOS. We are using the command to move the backup file into the SQL Server container for accessing through Azure Data Studio.ĭocker cp LOREAL_FINANCEv15.bak sql1:/var/opt/mssql/data/LOREAL_FINANCEv15.bak You should replace it with your respective file name.Įxit the container and give the following command in your terminal window. We will be using the LOREAL_FINANCEv15.bak as the SQL backup file name in the following steps as an example. Now type the following commands (one per line). opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Welcome123" The command below is to log in into the SQL Server instance in the Docker container. Successful login will give you the root prompt. We will now be logging into the container.

Run the Docker image by passing the sa user’s password (Welcome123 in this case).ĭocker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Welcome123" -p 1433:1433 -name sql1 -d /mssql/server:2017-latest Pull the latest SQL Server image using the Docker CLI.ĭocker pull /mssql/server:2017-latest Note: We will be installing SQL Server as a Docker image. You’ll need the SQL Server database backup file (.bak).Azure Data Studio for MacOS should be installed.Here are the steps to restore a SQL Server backup file on your MacOS using Docker containers. You can get a backup of your SQL Server database and can restore it using the Data Studio tool on your MacOS. For recent editions, Microsoft provides a tool called Azure Data Studio that can help MacOS users take advantage of SQL Server. However, this tool is not available for MacOS. SQL Server is usually managed using SQL Server Management Studio. Taking all things into consideration, SQLPro for MSSQL is a comprehensive database client that will make it very easy for you to work with MSSQL databases because it doesn’t stray from the usual SQL client GUI, being very similar in both its looks and its workflow to most other database clients out there.This article is focused on a recent requirement in which SQL Server needed to be accessed locally on a MacOS machine to analyse the database and its structure.
#SQL SERVER CLIENT TOOL FOR MAC MAC#
Forthright MSSQL database client for the Mac Queries can be executed with the help of custom keyboard shortcuts, by clicking the Execute button from the top toolbar, as well as from the Data menu.Īnother worth-mentioning feature is the fact that SQLPro for MSSQL allows you to choose one of three available UI themes (Dark, Default, and Sunset), to customize the font’s size and color, to change the background color, as well as to create your own custom themes. In addition, within the Preferences window, the editor can be configured to show the line numbers, to auto-complete queries and commands, as well as to auto-close brackets and quotes. Bundles a comprehensive syntax editor and three user interface themes Another benefit of the editor is the fact that it helps you execute multiple queries and view their results at the same time. What’s more, SQLPro for MSSQL features a similarly arranged user interface like most other SQL managers out there, with a sidebar on the left of its main window that provides you with quick access to views, columns, and tables, and a simple top toolbar from which you can add and execute new queries.Īs you would expect, database management tasks cannot be done without the help of an obligatory multi-tabbed editor that bundles a useful syntax highlighting engine. The server Event Viewer has the following logs: Event ID: 36874- TLS 1. SQLPro for MSSQL is a streamlined macOS database client that provides you with all the necessary tools for managing and editing Microsoft SQL Server databases.įurthermore, SQLPro for MSSQL can also work with cloud hosted instances like SQL Azure and Amazon RDS relational databases, as well as with MSSQL databases. Cause: The hosts SQLNet TCP/IP server was unable to recognize this connection.
