How to install MS SQL side by side in Apple Silicon M1/M2?

If you have recently transitioned to Apple Silicon M1/M2 devices and your application requires a Windows operating system, you may run into a snag when trying to install SQL.
The traditional GUI installer for SQL keeps failing, leaving you stuck. But worry no more!

I found a seamless solution to simplify the installation of SQL Express and SSMS on a Mac running Windows 11 through Parallels.
Here's how to achieve this:

insert image description here

installation steps

  • Download the installer Powershell script from here.
  • Extract the contents of the zip to C:/ of the Parallels VM.
  • Start Powershell ISE with administrator privileges.
  • If you have never configured an execution policy, you can execute the following command
    -Type Set-ExecutionPolicy RemoteSigned (optional)
  • Select the specific edition of SQL Server (2019/2022 - Express/Developer) that you want to install. Open the corresponding .ps file, for example if you want to install SQL Server 2019 Express, open install2019Express.ps1, and execute it.
  • This process will automatically download and install the latest SQL Server and SSMS.
    By default, access to SSMS is only granted through Windows authentication.
  • If you need SQL Server authentication, you can refer to this guide for step-by-step instructions.

The default collation for the provided script is SQL_Latin1_General_CP1_CS_AS. If you wish to modify this setting, you can do so by editing the
variable in the appropriate file before proceeding to step 5. $sqlInstallArgs.ps

Guess you like

Origin blog.csdn.net/iCloudEnd/article/details/132389482