This archive includes both SQL Developer and an embedded copy of the Java 8 Development Kit (JDK). Simply extract the zip to a fresh directory and run the sqldeveloper.exe in the top directory. The EXE is configured to run the embedded JDK by default.Note: the Windows EXE requires a MSVCR100.dll to run.
Most computers will already have this file and in the Windows PATH. However, if the first copy of the file found by the EXE is a 32-bit copy of the DLL, then SQL Developer will fail to start.
You can fix this by copying a 64-bit version of the DLL into the BIN directory or updating your OS PATH such that a 64 bit copy of the DLL is found first. Windows 32-bit/64-bit. This archive. Will work on a 32 or 64 bit Windows OS. The bit level of the JDK you install will determine if it runs as a 32 or 64 bit application.
Download SQLPro for MSSQL for macOS 10.11 or later and enjoy it on your Mac. SQLPro for MSSQL is a lightweight Microsoft SQL Server database client, allowing quick and simple access to MSSQL Servers, including those hosted via cloud services such as SQL Azure or Amazon RDS.
This download does not include the required Oracle Java JDK. You will need to install it if it's not already on your machine. We officially support Oracle JDK 8 or 11.If SQL Developer cannot find Java on your machine, it will prompt you for the path for a JDK home. This only occurs the first time you launch SQL Developer. A valid Java Home on Windows will be similar toC:Program FilesJavajdk1.8.0181Mac OS X Installation NotesThis download does not include the Oracle JDK. SQL Developer supports either Oracle JDK 8 or 11. To install and run.
Here I’ll show you how to get SQL Server up and running on your Mac in less than half an hour. And the best part is, you’ll have SQL Server running locally without needing any virtualization software.Prior to SQL Server 2017, if you wanted to run SQL Server on your Mac, you first had to create a virtual machine (using VirtualBox, Parallels Desktop, VMware Fusion, or Bootcamp), then install Windows onto that VM, then finally SQL Server. This is still a valid option depending on your requirements (here’s if you’d like to try that method).Starting with SQL Server 2017, you can now install SQL Server directly on to a Linux machine. And because macOS is Unix based (and Linux is Unix based), you can run SQL Server for Linux on your Mac.
The way to do this is to run SQL Server on Docker.So let’s go ahead and install Docker. Then we’ll download and install SQL Server.
Install DockerDownload the (free) Docker Community Edition for Mac (unless you’ve already got it installed on your system). This will enable you to run SQL Server from within a Docker container.To download, visit the Docker CE for Mac and click Get Docker.To install, double-click on the.dmg file and then drag the Docker.app icon to your Application folder.Docker installation on a Mac. What is Docker?Docker is a platform that enables software to run in its own isolated environment. SQL Server (from 2017) can be run on Docker in its own isolated container. Once Docker is installed, you simply download — or “pull” — the SQL Server on Linux Docker Image to your Mac, then run it as a Docker container. This container is an isolated environment that contains everything SQL Server needs to run.
Download SQL ServerNow that Docker is installed and its memory has been increased, we can download and install SQL Server for Linux.Open a Terminal window and run the following command.sudo docker pull mcr.microsoft.com/mssql/server:2019-latestThis downloads the latest SQL Server 2019 for Linux Docker image to your computer.You can also check for the on the Docker website if you wish.Update: When I first wrote this article, I used the following image: docker pull microsoft/mssql-server-linuxWhich downloaded SQL Server 2017. Therefore, the examples below reflect that version.
Launch the Docker ImageRun the following command to launch an instance of the Docker image you just downloaded: docker run -d -name sqlserverdemo -e 'ACCEPTEULA=Y' -e 'SAPASSWORD=reallyStrongPwd123' -p 1433:1433 microsoft/mssql-server-linuxBut of course, use your own name and password. Also, if you downloaded a different Docker image, replace microsoft/mssql-server-linux with the one you downloaded.Here’s an explanation of the parameters: -d This optional parameter launches the Docker container in daemon mode. This means that it runs in the background and doesn’t need its own Terminal window open. You can omit this parameter to have the container run in its own Terminal window.name sqlserverdemo Another optional parameter. This parameter allows you to name the container.
This can be handy when stopping and starting your container from the Terminal.e 'ACCEPTEULA=Y' The Y shows that you agree with the EULA (End User Licence Agreement). This is required in order to have SQL Server for Linux run on your Mac.e 'SAPASSWORD=reallyStrongPwd123' Required parameter that sets the sa database password.p 1433:1433 This maps the local port 1433 to port 1433 on the container. This is the default TCP port that SQL Server uses to listen for connections. Microsoft/mssql-server-linux This tells Docker which image to use.
If you downloaded a different one, use it instead. Password StrengthIf you get the following error at this step, try again, but with a stronger password.
Microsoft(R) SQL Server(R) setup failed with error code 1. Please check the setup log in /var/opt/mssql/log for more information.I received this error when using reallyStrongPwd as the password (but of course, it’s not a really strong password!). I was able to overcome this by adding some numbers to the end. However, if it wasn’t just a demo I’d definitely make it stronger than a few dictionary words and numbers. Check the Docker container (optional)You can type the following command to check that the Docker container is running. Docker psIf it’s up and running, it should return something like this: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES4e4aa21eb391 microsoft/mssql-server-linux '/bin/sh -c /opt/m.' 23 seconds ago Up 21 seconds 0.0.0.0:1433-1433/tcp sqlserverdemo.
Install sql-cli (unless already installed)Run the following command to install the sql-cli command line tool. This tool allows you to run queries and other commands against your SQL Server instance. Npm install -g sql-cliThis assumes you have NodeJs installed. If you don’t, download it from first.
Installing NodeJs will automatically install npm which is what we use in this command to install sql-cli. Permissions Error?If you get an error, and part of it reads something like Please try running this command again as root/Administrator, try again, but this time prepend sudo to your command: sudo npm install -g sql-cli.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |