Where should I install SQL Management Server insta

2019-08-24 15:08发布

问题:

I have a new desktop Windows 10 development machine and am trying to minimize what I install on it.

On my old development machine I wound up with multiple versions of SQL Server and Management Studio.

This time I have installed SQL Server in a docker container.

Because of the answer to This question I understand I should not put Management Studio in a container. So where should I put it. In Hyper-V ?

回答1:

Why "minimize" your installation and put barriers between yourself and your work? The purpose of a development machine is to have all the necessary tools to do your job at your disposal.

There's nothing wrong with having multiple versions of SQL Server or Management Studio installed on a single development machine, unless you're short on disk space. And there is no need to containerize them or put them in separate VMs.

I would, however, recommend installing them in the order they were released (oldest to newest). In the past, I've had as many as four releases of SQL Server installed on a single development machine, along with their corresponding SSMS (because until 2016, SSMS always came along for the ride). No troubles.



回答2:

You can put your Management Studio in your Hyper-V. From docker expose the ports of SQL server.

After this you should be able to connect to the SQL server running inside your docker. If required to use some hostname (is management studio needs it) then edit the host file and add the hostname and IP address as docker IP address so that your management studio contacts the docker.