Top Banner
http://www.microsoft.com/en-us/download/details.aspx?id=28160 Microsoft® SQL Server® ODBC Driver 1.0 for Linux The Microsoft SQL Server ODBC Driver for Linux provides native connectivity from Linux to Microsoft SQL Server.
5

Microsoft® SQL Server® ODBC Driver 1.0 for Linux

Dec 20, 2015

Download

Documents

Microsoft® SQL Server® ODBC Driver 1.0 for Linux
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Microsoft® SQL Server® ODBC Driver 1.0 for Linux

http://www.microsoft.com/en-us/download/details.aspx?id=28160

Microsoft® SQL Server® ODBC Driver 1.0 for Linux The Microsoft SQL Server ODBC Driver for Linux provides native connectivity from Linux to Microsoft SQL Server.

Page 2: Microsoft® SQL Server® ODBC Driver 1.0 for Linux

If you previously installed the Microsoft SQL Server ODBC Driver for Linux Community Technology Preview (CTP), please follow the “Upgrade from Community Technology Preview” instructions below instead of these installation instructions.

Download the Microsoft SQL Server ODBC Driver or Linux package for your platform by clicking one of the download buttons.

Verify the integrity of your download:

64-bit Red Hat Enterprise Linux 5

MD5: 479f9535c5f899f44f2f6b987e526c2b SHA1: 7e13b288a46b5caa5862d1270edac0fbdafa2a9d

64-bit Red Hat Enterprise Linux 6

MD5: 36aca6fdfaa6e87754c477e08969fed4 SHA1: ba8a27b1fc91b933a31d987805a6f78e29f893b4

Extract the Microsoft SQL Server ODBC Driver 1.0 for Linux package:

5. Navigate to the directory where you downloaded sqlncli-11.0.1790.0.tar.gz and extract it:cd ~/Downloads/ tar xvf sqlncli-11.0.1790.0.tar.gz.

Install the unixODBC 2.3.0 Driver Manager:

6. Make sure that you have root permissions.7. Remove any older installed version of unixODBC (for example, unixODBC

2.2.11): yum remove unixODBC8. Change to the sqlncli-11.0.1790.0 directory, where you can run build_dm.sh to

install the unixODBC Driver Manager:cd ./sqlncli-11.0.1790.0./build_dm.sh --help

9. You can install the driver manager by executing the following command:./build_dm.shNote: you can also download the driver manager manually at http://www.unixodbc.org/ and use the downloaded archive locally:./build_dm.sh --download-url=file://unixODBC-2.3.0.tar.gz

10. Type "YES" to proceed with unpacking the files. This part of the process can take up to five minutes to complete.

11. After the script stops running, follow the instructions on the screen to install the unixODBC Driver Manager.

Install the Microsoft SQL Server ODBC Driver 1.0 for Linux:

12. Make sure that you have root permissions.

Page 3: Microsoft® SQL Server® ODBC Driver 1.0 for Linux

13. Change to the sqlncli-11.0.1790.0 directory, where you can run install.sh to install the driver:cd ./sqlncli-11.0.1790.0./install.sh --help

14. (Optional) You may want to make a backup of odbcinst.ini. The driver installation will update odbcinst.ini. odbcinst.ini contains the list of drivers that are registered with the unixODBC Driver Manager. Execute the following command to discover the location of odbcinst.ini on your computer:odbc_config –odbcinstini.

15. Before you install the driver, you may run a verify step to check if your computer has the required software to support the Microsoft SQL Server ODBC Driver 1.0 for Linux:./install.sh verify

16. When you are ready to install the Microsoft SQL Server ODBC Driver 1.0 for Linux, run the install script:./install.sh install

17. After reviewing the license agreement, type "YES" to continue with the installation.

18. Verify that Microsoft SQL Server ODBC Driver 1.0 for Linux was registered successfully: odbcinst -q -d -n "SQL Server Native Client 11.0"

Upgrade from Community Technology Preview

If you previously installed the Microsoft SQL Server ODBC Driver for Linux Community Technology Preview (CTP), it is important to remove the CTP before installing the Microsoft SQL Server ODBC Driver 1.0 for Linux. However, you do not need to uninstall or reinstall the unixODBC 2.3.0 Driver Manager that you used with the CTP.

Download the Microsoft SQL Server ODBC Driver 1.0 for Linux package for your platform by clicking one of the download buttons.

Verify the integrity of your download:

64-bit Red Hat Enterprise Linux 5

MD5: 479f9535c5f899f44f2f6b987e526c2b SHA1: 7e13b288a46b5caa5862d1270edac0fbdafa2a9d

64-bit Red Hat Enterprise Linux 6

MD5: 36aca6fdfaa6e87754c477e08969fed4 SHA1: ba8a27b1fc91b933a31d987805a6f78e29f893b4

Extract the Microsoft SQL Server ODBC Driver 1.0 for Linux package:

23. Navigate to the directory where you downloaded sqlncli-11.0.1790.0.tar.gz and extract it:cd ~/Downloads/ tar xvf sqlncli-11.0.1790.0.tar.gz.

Page 4: Microsoft® SQL Server® ODBC Driver 1.0 for Linux

Remove the Microsoft SQL Server ODBC Driver for Linux Community Technology Preview:

24. Make sure that you have root permissions.25. Remove the CTP files and symbolic links:

rm /usr/bin/bcprm /usr/bin/sqlcmdodbcinst -u -d -n "SQL Server Native Client 11.0"rm -r /opt/microsoft/sqlncli

If you used the --bin-dir option to place the bcp and sqlcmd applications into a different directory when you installed the CTP, be sure to remove both applications from that directory as well.

Install the Microsoft SQL Server ODBC Driver 1.0 for Linux:

26. Make sure that you have root permissions. 27. Change to the sqlncli-11.0.1790.0 directory, where you can run install.sh to

install the driver:cd ./sqlncli-11.0.1790.0./install.sh --help

28. (Optional) You may want to make a backup of odbcinst.ini. The driver installation will update odbcinst.ini. odbcinst.ini contains the list of drivers that are registered with the unixODBC Driver Manager. Execute the following command to discover the location of odbcinst.ini on your computer:odbc_config –odbcinstini.

29. Before you install the driver, you may run a verify step to check if your computer has the required software to support the Microsoft SQL Server ODBC Driver 1.0 for Linux:./install.sh verify

30. When you are ready to install the Microsoft SQL Server ODBC Driver 1.0 for Linux, run the install script:./install.sh install

31. After reviewing the license agreement, type "YES" to continue with the installation.

32. Verify that Microsoft SQL Server ODBC Driver 1.0 for Linux was registered successfully: odbcinst -q -d -n "SQL Server Native Client 11.0"