Skip to content

Instantly share code, notes, and snippets.

@heitara
Created May 17, 2024 22:24
Show Gist options
  • Save heitara/0987c24926aa9e19c8c70d7fca9f7599 to your computer and use it in GitHub Desktop.
Save heitara/0987c24926aa9e19c8c70d7fca9f7599 to your computer and use it in GitHub Desktop.
How to run MSSQL on Windows 11 in Parallels on a Mac with M1/M2/M3 processor

How to install MSSSQL on a mac with Apple M1 processor

The real problem comes from this new architecture. First, you have to install Parallels, which is quite easy. Just follow the installation guide. Then you have to install Windows 11, which is part of Parallels. So far, so good. Then you have go to the foolowing github repo https://github.com/jimm98y/MSSQLEXPRESS-M1-Install. Use the download button (Click on Code button and pick 'Download ZIP'). Extract this somewhere on your C:\ drive on the virtual machinve (Win11 VM).

The following steps might be accomplished from WindowsExplorer, but don't forget to start it as Administrator.

Start Terminal as Administrator (Use the start menu, type 'CMD' and pick Run as Administrator). Navigate to the correct folder using "cd C:<name_of_the_folder_where_you_extracted_all_files_from_the_zip>" Then go to "src\Scrips" subfolder. Start the Sql2019Express.bat script.

After this is finished you should see MSSQL EXPRESS 2019 up and running.

To validate that everything is fine download the latest MS Server Management Studio SSMS - https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16

You should be able to connect to your local express instance.

Tips: You can create new user or enable "sa". You can change its password. You can change the authentication of your server. https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode?view=sql-server-ver16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment