SQL Server를 위한 mssql-cli 명령줄 쿼리 도구(미리 보기)

적용 대상: SQL Server Azure SQL Database Azure Synapse Analytics Not supported. Analytics Platform System(PDW)

mssql-cli는 SQL Server를 쿼리하기 위한 대화형 명령줄 도구이며 Windows, macOS 또는 Linux에서 실행됩니다.

mssql-cli 설치

자세한 설치 지침은 설치 가이드를 참조하세요. 가장 일반적인 설치 시나리오는 아래에 요약되어 있습니다.

Windows 및 macOS 설치

mssql-cli는 다음을 사용하여 pipWindows 및 macOS에 설치됩니다.

$ pip install mssql-cli

자세한 지침은 설치 가이드를 참조하세요.

Linux 설치

Microsoft 리포지토리를 등록한 후에는 여러 Linux 배포판의 패키지 관리자를 통해 mssql-cli를 설치하고 업그레이드할 수 있습니다.

다음 예제는 Ubuntu 18.04(Bionic)에 적용됩니다. 다른 배포판에 대한 자세한 내용 및 예제는 설치 가이드에서 확인할 수 있습니다.

# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc

# Register the Microsoft Ubuntu repository
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod

# Update the list of products
sudo apt-get update

# Install mssql-cli
sudo apt-get install mssql-cli

# Install missing dependencies
sudo apt-get install -f

mssql-cli 설명서

Mssql-cli 설명서는 mssql-cli GitHub 리포지토리에 있습니다.

추가 설명서는 doc 폴더있습니다.