How to connect to a Microsoft SQL Server from Linux shell?
9,182
The following url is the answer for your question: https://docs.microsoft.com/de-de/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15
Author by
AndreaNobili
Updated on September 18, 2022Comments
-
AndreaNobili over 1 year
I have the following problem: I am working on an Ubuntu Linux server (I have access only to the shell, no desktop environment) and I have to interact with a Microsoft SQL server to create some tables on a database.
So what I need is a command line client that, from the shell, allow me to connect to this MS SQL Server DB and interact with it.
What can I use?
-
lx07 over 4 yearsThat link is German. This is the English version: Quickstart: Install SQL Server and create a database on Ubuntu. You may want to see Installing the Microsoft ODBC Driver for SQL Server on Linux and macOS also as it is remote server.
-
AndreaNobili over 4 yearsOk thanks: only one doubt. I have not to install SQL server on my Linux environment. I only have to connect to an external (remote) MS SQL server. So have I just to install the "SQL Server command-line tools"?
-
Bitfighter over 4 yearsYes I think so. Just try it. Learning by doing now you have one more step.