安装unixodbc
sudo apt install unixodbc


安装ODBC
下载微软的odbc驱动(我下的是Microsoft ODBC Driver 17 for SQL Server ,Ubuntu 16.04 .deb package)
https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-2017

dpkg -i 安装一个 Debian 软件包


写odbc的配置文件
参考网页:https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/connection-string-keywords-and-data-source-names-dsns?view=sql-server-2017
vi /etc/odbc.ini

[ODBC Data Sources]
data_source_name = sqlserver17

[sqlerver17]
Driver = ODBC Driver 17 for SQL Server
Server = tcp:192.168.0.1,1433

/etc/odbcinst.ini 为空


打开workbeanch并配置
使用workbeanch将sqlserver2008R2迁移到mssql在unbutu1604上_第1张图片
点击下面的test按钮成功


PS:记得打开防火墙和sqlserver允许远程访问