This article explains how to install the Microsoft ODBC Driver for SQL Server on Linux and macOS, as well as the optional Command-Line Tools for SQL Server (bcp and sqlcmd) and the unixODBC Development Headers. Sudo su #Download appropriate package for the OS version #Choose only ONE of the.
RazorSQL is an SQL query tool, database browser, SQL editor, and database administration tool for Windows, macOS, Mac OS X, Linux, and Solaris.
RazorSQL has been tested on over 40 databases, can connect to databases via eitherJDBC or ODBC,and includes supportfor the following databases:
Athena | Greenplum | Mimer SQL | Salesforce |
Aurora | H2 | MongoDB | SimpleDB |
BigQuery | Hive | MonetDB | Snowflake |
Cassandra | HSQLDB | MS SQL Server | solidDB |
DB2 | Informix | MySQL | SQLite |
DBASE | Ingres | Netezza | SQL Anywhere |
Derby | Interbase | OpenBase | SQL Azure |
Druid | Int.Sys. Cache | Oracle | Sybase (ASE) |
DynamoDB | JavaDB | Paradox | Sybase IQ |
Filemaker | kdb+ | Pervasive | Teradata |
Firebird | MariaDB | PostgreSQL | Vertica |
Frontbase | Microsoft Access | Redshift | VoltDB |
Database Browser | SQL Editor |
Browse database objects such as schemas, tables, columns, primary and foreign keys, views, indexes, procedures,functions, and more. | Edit SQL scripts. Run SQL queries. Auto column and auto table lookup. Uses the powerfulEditRocket code editor that supportsover 20 programming languages including SQL, PL/SQL, TransactSQL, SQL PL, HTML, Java, XML, and more. |
Database Tools | Database Query Tool |
Visual tools to create, alter, describe, execute, and drop database objects such as tables, views,indexes, stored procedures,functions, triggers, and more. | Includes multi-tabular display of queries with options for filtering, sorting, searching, and much more. |
Import Data | Export Data |
Import data from various formats such as delimited files, Excel spreadsheets, and fixed-width files. | Export data in various formats such as delimited files, XML, HTML, Excel spreadsheets, JSON, and SQL insert statements. |
SQL Query Builder | Built-in Database |
Create select, insert, update, and delete SQL statements. Create multi-table joins. | Includes a robust relational database (HSQLDB) that is up and running with no manual configurationout of the box. |
Edit Table Tool | Data Compare |
Insert, update, and delete table data in a spreadsheet like format. Find and replace data, previewgenerated SQL, and more. | Compare table data across databases, or compare the results of queries. |
RazorSQL provides both easy to use visual tools and advanced features to allowusers to do database browsing, editing, management, administration, and programming.Browse the database specific features or the complete feature reference.
This article explains how to install the Microsoft ODBC Driver for SQL Server on Linux and macOS, as well as the optional Command-Line Tools for SQL Server (bcp
and sqlcmd
) and the unixODBC Development Headers.
Important
If you installed the v17 msodbcsql
package that was briefly available, you should remove it before installing the msodbcsql17
package. This will avoid conflicts. The msodbcsql17
package can be installed side by side with the msodbcsql
v13 package.
Note
If you prefer/require the Microsoft ODBC Driver 13 to be installed on a computer with no internet connection, you will need to resolve package dependencies manually. The Microsoft ODBC Driver 13 has the following direct dependencies:
glibc, e2fsprogs, krb5-libs, openssl, unixODBC
glibc, libuuid1, krb5, openssl, unixODBC
Each of these packages in turn has their own dependencies, which may or may not be present on the system. For a general solution to this issue, refer to your distribution's package manager documentation: Redhat, Ubuntu, and SUSE
It is also common to manually download all the dependent packages and place them together on the installation computer, then manually install each package in turn, finishing with the Microsoft ODBC Driver 13 package.
msodbcsql
.rpm
from here: https://packages.microsoft.com/rhel/7/prod/msodbcsql
.deb
from here: https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/m/msodbcsql/msodbcsql
.rpm
from here: https://packages.microsoft.com/sles/12/prod/Once you have completed the package installation, you can verify that the Microsoft ODBC Driver 13 can find all its dependencies by running ldd and inspecting its output for missing libraries:
Before you can use the driver, install the unixODBC driver manager. For more information, see Installing the Driver Manager.
Installation Steps
Important
https://loneconpar.tistory.com/4. These instructions refer to msodbcsql-11.0.2270.0.tar.gz
, which is installation file for Red Hat Linux. If you are installing the Preview for SUSE Linux, the file name is msodbcsql-11.0.2260.0.tar.gz
.
To install the driver:
Donwload ftp client for mac. Download FileZilla Client 3.38.1 for Mac OS X. The latest stable version of FileZilla Client is 3.38.1. Please select the file appropriate for your platform below.
Make sure that you have root permission.
Change to the directory where the download placed the file msodbcsql-11.0.2270.0.tar.gz
. Make sure that you have the *.tar.gz file that matches your version of Linux. To extract the files, execute the following command, tar xvzf msodbcsql-11.0.2270.0.tar.gz
.
Change to the msodbcsql-11.0.2270.0
directory and there you should see a file called install.sh.
To see a list of the available installation options, execute the following command: ./install.sh.
Make a backup of odbcinst.ini. The driver installation updates odbcinst.ini. odbcinst.ini contains the list of drivers that are registered with the unixODBC Driver Manager. To discover the location of odbcinst.ini on your computer, execute the following command: odbc_config --odbcinstini
.
Before you install the driver, execute the following command: ./install.sh verify
. The output of ./install.sh verify
reports if your computer has the required software to support the ODBC driver on Linux.
When you are ready to install the ODBC driver on Linux, execute the command: ./install.sh install
. If you need to specify an install command (bin-dir
or lib-dir
), specify the command after the install option.
Core ftp free download - Classic FTP Plus, Yummy FTP Pro, BulletProof FTP Client Mac, and many more programs. Core ftp free download - Classic FTP Plus, Yummy FTP Pro, BulletProof FTP Client Mac. Free ftp client mac. Use of Core FTP LE (as of version 1.1d) is also free under terms specified in the help file. Purchasing a license will give additional functionality, support, and upgrades. FileZilla is a powerful FTP-client. It has been designed for ease of use and with support for as many features as possible, while still being fast and reliable. Core FTP LE by CoreFTP.com is a free and well-known FTP client that comes with a number of features like SFTP (SSH), SSL, TLS, IDN, browser integration, site to site transfers, FTP transfer resume, drag and drop support and more.
After reviewing the license agreement, type YES to continue with the installation.
Installation puts the driver in /opt/microsoft/msodbcsql/11.0.2270.0
. The driver and its support files must be in /opt/microsoft/msodbcsql/11.0.2270.0
.
To verify that the Microsoft ODBC driver on Linux was registered successfully, execute the following command: odbcinst -q -d -n 'ODBC Driver 11 for SQL Server'
.
Use Existing MSDN C++ ODBC Samples for the ODBC Driver on Linux shows a code sample that connects to SQL Server using the ODBC driver on Linux.
Uninstalling
You can uninstall the ODBC driver 11 on Linux by executing the following commands:
rm -f /usr/bin/sqlcmd
rm -f /usr/bin/bcp
rm -rf /opt/microsoft/msodbcsql
odbcinst -u -d -n 'ODBC Driver 11 for SQL Server'
If you are unable to make a connection to SQL Server using the ODBC driver, use the following information to identify the problem.
The most common connection problem is to have two copies of the UnixODBC Driver Manager installed. Search /usr for libodbc*.so*. If you see more than one version of the file, you (possibly) have more than one driver manager installed. Your application might use the wrong version.
Enable the connection log by editing your /etc/odbcinst.ini
file to contain the following section with these items:
If you get another connection failure and do not see a log file, there (possibly) are two copies of the driver manager on your computer. Otherwise, the log output should be similar to the following:
If the ASCII character encoding is not UTF-8, for example:
There is more than one Driver Manager installed and your application is using the wrong one, or the Driver Manager was not built correctly.
For more information about resolving connection failures, see:
The error number specified in the URL (11001) should be changed to match the error that you see.
The ODBC Driver on Linux and MacOS consists of the following components:
Component | Description |
---|---|
libmsodbcsql-17.X.so.X.X or libmsodbcsql-13.X.so.X.X | The shared object (so ) dynamic library file that contains all of the driver's functionality. This file is installed in /opt/microsoft/msodbcsql17/lib64/ for the Driver 17 and in /opt/microsoft/msodbcsql/lib64/ for Driver 13. |
msodbcsqlr17.rll or msodbcsqlr13.rll | The accompanying resource file for the driver library. This file is installed in [driver .so directory]./share/resources/en_US/ |
msodbcsql.h | The header file that contains all of the new definitions needed to use the driver. Note: You cannot reference msodbcsql.h and odbcss.h in the same program. msodbcsql.h is installed in /opt/microsoft/msodbcsql17/include/ for Driver 17 and in /opt/microsoft/msodbcsql/include/ for Driver 13. |
LICENSE.txt | The text file that contains the terms of the End-User License Agreement. This file is placed in /usr/share/doc/msodbcsql17/ for Driver 17 and in /usr/share/doc/msodbcsql/ for Driver 13. |
RELEASE_NOTES | The text file that contains release notes. This file is placed in /usr/share/doc/msodbcsql17/ for Driver 17 and in /usr/share/doc/msodbcsql/ for Driver 13. |
Component | Description |
---|---|
libmsodbcsql.17.dylib or libmsodbcsql.13.dylib | The dynamic library (dylib ) file that contains all of the driver's functionality. This file is installed in /usr/local/lib/ . |
msodbcsqlr17.rll or msodbcsqlr13.rll | The accompanying resource file for the driver library. This file is installed in [driver .dylib directory]./share/msodbcsql17/resources/en_US/ for Driver 17 and in [driver .dylib directory]./share/msodbcsql/resources/en_US/ for Driver 13. |
msodbcsql.h | The header file that contains all of the new definitions needed to use the driver. Note: You cannot reference msodbcsql.h and odbcss.h in the same program. msodbcsql.h is installed in /usr/local/include/msodbcsql17/ for Driver 17 and in /usr/local/include/msodbcsql/ for Driver 13. |
LICENSE.txt | The text file that contains the terms of the End-User License Agreement. This file is placed in /usr/local/share/doc/msodbcsql17/ for Driver 17 and in /usr/local/share/doc/msodbcsql/ for Driver 13. |
RELEASE_NOTES | The text file that contains release notes. This file is placed in /usr/local/share/doc/msodbcsql17/ for Driver 17 and in /usr/local/share/doc/msodbcsql/ for Driver 13. |
The driver needs to load the resource file in order to function. This file is called msodbcsqlr17.rll
or msodbcsqlr13.rll
depending on the driver version. The location of the .rll
file is relative to the location of the driver itself (so
or dylib
), as noted in the table above. As of version 17.1 the driver will also attempt to load the .rll
from the default directory if loading from the relative path fails. The default resource file paths are:
Linux: /opt/microsoft/msodbcsql17/share/resources/en_US/
MacOS: /usr/local/share/msodbcsql17/resources/en_US/