「SQL Server」- 安装

SQL Server and Ubuntu 16.04.3 LTS

#!/bin/sh

###########################################################################################
# 安装
###########################################################################################
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
apt-get update
apt-get install -y mssql-server

###########################################################################################
# 初始化并启动服务
###########################################################################################
/opt/mssql/bin/mssql-conf setup
systemctl enable mssql-server
systemctl start mssql-server
systemctl status mssql-server

# 手册文档安装的usr下,服务管理文件在lib下,SQL Server的服务程序文件在opt下。

Windows 7 and SQL Server 2012 Express

在Windows 7 Service Pack 1中,可以安装SQL Server 2014 Express版本。但是在Windows 7中,只能安装SQL Server 2012 Express版本。

Download Microsoft® SQL Server® 2012 Express from Official Microsoft Download Center

安装方法:下一步 => 下一步 => …………

相关链接

其他Linux发行版,安装参考官方「Try SQL Server on-premises or in the cloud」文档。
SQL Server Express Supported Operating Systems
Install Windows 7 Service Pack 1 (SP1)

参考文献

Install SQL Server and create a database on Ubuntu