- Открытие администратора источника данных ODBC Open the ODBC Data Source Administrator
- Открытие администратора источников данных ODBC в Windows 10 To open the ODBC Data Source Administrator in Windows 10
- Открытие администратора источников данных ODBC в Windows 7 To open the ODBC Data Source Administrator in Windows 7
- Открытие администратора источников данных ODBC в Windows Server 2008 To open the ODBC Data Source Administrator in Windows Server 2008
- Download ODBC Driver for SQL Server
- Download for Windows
- Version information
- Available languages
- Release notes for Windows
- Previous releases for Windows
- Download for Linux and macOS
- Системные требования, установка и файлы драйвера System requirements, installation, and driver files
- Совместимость с версиями SQL SQL version compatibility
- Сведения о строке подключения Connection string details
- Поддерживаемые операционные системы Supported operating systems
- Установка Microsoft ODBC Driver for SQL Server Installing Microsoft ODBC Driver for SQL Server
- Параллельно с Native Client Side-by-side with Native Client
- Лицензия пользователя End-user license
- Удаление без взаимодействия с пользователем Silent uninstall
- Указание зависимость Indicate dependency
- Программы командной строки: sqlcmd.exe и bcp.exe Command-line tools: sqlcmd.exe and bcp.exe
- Компоненты Microsoft ODBC Driver for SQL Server SQL Server в Windows Components of the Microsoft ODBC Driver for SQL Server SQL Server on Windows
Открытие администратора источника данных ODBC Open the ODBC Data Source Administrator
Применимо к: Applies to: SQL Server SQL Server (все поддерживаемые версии) SQL Server SQL Server (all supported versions) Применимо к: Applies to: SQL Server SQL Server (все поддерживаемые версии) SQL Server SQL Server (all supported versions)
В этом разделе описывается открытие администратора источников данных ODBC. This topic describes how to open the ODBC Data Source Administrator. Администратор источника данных ODBC представляет собой компонент Windows. The ODBC Data Source Administrator is a Windows component. Используйте администратор источника данных ODBC для создания источников данных ODBC и управления ими. Use the ODBC Data Source Administrator to create and manage ODBC data sources.
Открытие администратора источников данных ODBC в Windows 10 To open the ODBC Data Source Administrator in Windows 10
- На начальной странице введите Источники данных ODBC. On the Start page, type ODBC Data Sources. Должен отобразиться вариант ODBC Data Sources Destop App (Классическое приложение источников данных ODBC). The ODBC Data Sources Desktop App should appear as a choice.
Открытие администратора источников данных ODBC в Windows 7 To open the ODBC Data Source Administrator in Windows 7
В меню Пуск выберите пункт Панель управления. On the Start menu, click Control Panel.
На панели управлениявыберите пункт Администрирование. In Control Panel, click Administrative Tools.
В окне Администрированиевыберите пункт Источники данных (ODBC) . In Administrative Tools, click Data Sources (ODBC).
Открытие администратора источников данных ODBC в Windows Server 2008 To open the ODBC Data Source Administrator in Windows Server 2008
- В меню Пуск наведите указатель на пункт Администрированиеи выберите пункт Источники данных (ODBC) . On the Start menu, point to Administrative Tools, and then click Data Sources (ODBC).
Настраивая подключения для проверки подлинности Azure Active Directory для базы данных SQL, установите последнюю версию драйвера, например версию 17 драйвера ODBC для SQL Server. For connections to Azure Active Directory Authentication for SQL Database install the latest driver, such as ODBC Driver 17 for SQL Server.
Download ODBC Driver for SQL Server
Applies to: SQL Server (all supported versions) Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Parallel Data Warehouse
Microsoft ODBC Driver for SQL Server is a single dynamic-link library (DLL) containing run-time support for applications using native-code APIs to connect to SQL Server. Use Microsoft ODBC Driver 17 for SQL Server to create new applications or enhance existing applications that need to take advantage of newer SQL Server features.
Download for Windows
The redistributable installer for Microsoft ODBC Driver 17 for SQL Server installs the client components, which are required during run time to take advantage of newer SQL Server features. It optionally installs the header files needed to develop an application that uses the ODBC API. Starting with version 17.4.2, the installer also includes and installs the Microsoft Active Directory Authentication Library (ADAL.dll).
Version 17.7.2 is the latest general availability (GA) version. If you have a previous version of Microsoft ODBC Driver 17 for SQL Server installed, installing 17.7.2 upgrades it to 17.7.2.
Download Microsoft ODBC Driver 17 for SQL Server (x64)
Download Microsoft ODBC Driver 17 for SQL Server (x86)
Version information
- Release number: 17.7.2.1
- Released: March 10, 2021
If you are accessing this page from a non-English language version, and want to see the most up-to-date content, please visit the US-English version of the site. You can download different languages from the US-English version site by selecting available languages.
Available languages
This release of Microsoft ODBC Driver for SQL Server can be installed in the following languages:
Release notes for Windows
For details about this release on Windows, see the Windows release notes.
Previous releases for Windows
Download for Linux and macOS
The Microsoft ODBC Driver for SQL Server can be downloaded and installed using package managers for Linux and macOS using the relevant installation instructions:
Install ODBC for SQL Server (Linux)
Install ODBC for SQL Server (macOS)
If you need to download the packages for offline installation, all versions are available via the below links.
Packages named msodbcsql17-* are the latest version. Packages named msodbcsql-* are version 13 of the driver.
Системные требования, установка и файлы драйвера System requirements, installation, and driver files
Скачать драйвер ODBC Download ODBC Driver
В этой статье обсуждаются драйверы ODBC, подключающиеся к SQL Server. This article discusses the ODBC drivers that connect to SQL Server.
Совместимость с версиями SQL SQL version compatibility
Совместимость указывает, что драйвер был протестирован на совместимость с существующими выпусками SQL во время выпуска драйвера. Compatibility indicates that a driver was tested for compatibility against existing releases of SQL at the time of the driver’s release. Выпуски SQL Server обычно пытаются поддерживать обратную совместимость с существующими драйверами клиента. SQL Server releases generally try to maintain backwards compatibility with existing client drivers. Но новые функции в выпусках SQL Server могут быть недоступны для более старых версий клиентских драйверов. But new features in SQL Server releases may not be available with older client drivers.
Версия базы данных → Database version → ↓ Версия драйвера ↓ Driver Version | База данных SQL Azure Azure SQL Database | Azure Synapse Analytics Azure Synapse Analytics | Управляемый экземпляр SQL Azure Azure SQL Managed Instance | SQL Server 2019 SQL Server 2019 | SQL Server 2017 SQL Server 2017 | SQL Server 2016 SQL Server 2016 | SQL Server 2014 SQL Server 2014 | SQL Server 2012 SQL Server 2012 | SQL Server 2008 R2 SQL Server 2008 R2 | SQL Server 2008 SQL Server 2008 | SQL Server 2005 SQL Server 2005 |
---|---|---|---|---|---|---|---|---|---|---|---|
17.6 17.6 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |||
17.5 17.5 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |||
17.4 17.4 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |||
17.3 17.3 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |
17.2 17.2 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
17.1 17.1 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
17,0 17.0 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
Версия 13.1 13.1 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |||||
13 13 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||||||
11 11 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes |
Сведения о строке подключения Connection string details
Имя драйвера, которое следует указывать в строке подключения, — ODBC Driver 11 for SQL Server или ODBC Driver 13 for SQL Server (как для 13, так и для 13.1) или ODBC Driver 17 for SQL Server . The driver name that you specify in a connection string is ODBC Driver 11 for SQL Server or ODBC Driver 13 for SQL Server (for both 13 and 13.1) or ODBC Driver 17 for SQL Server .
Поддерживаемые операционные системы Supported operating systems
Следующая таблица указывает на поддержку версии драйвера для версий операционной системы Windows: The following matrix indicates driver version support for Windows operating system versions:
Операционная система → Operating system → ↓ Версия драйвера ↓ Driver version | Windows Server 2019 Windows Server 2019 | Windows Server 2016 Windows Server 2016 | Windows Server 2012 R2 Windows Server 2012 R2 | Windows Server 2012 Windows Server 2012 | Windows Server 2008 R2 Windows Server 2008 R2 | Windows 10 Windows 10 | Windows 8.1 Windows 8.1 | Windows 7 Windows 7 | Windows Vista с пакетом обновления 2 (SP2) Windows Vista SP2 |
---|---|---|---|---|---|---|---|---|---|
17.6 17.6 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |||
17.5 17.5 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |||
17.4 17.4 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |
17.3 17.3 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | |
17.2 17.2 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
17.1 17.1 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
17,0 17.0 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
Версия 13.1 13.1 | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | Да Yes | ||
13 13 | Да Yes | Да Yes | Да Yes | Да Yes | |||||
11 11 | Да Yes | Да Yes | Да Yes | Да Yes |
Установка Microsoft ODBC Driver for SQL Server Installing Microsoft ODBC Driver for SQL Server
Драйвер устанавливается при запуске msodbcsql.msi из одной из загрузок для Windows. The driver is installed when you run msodbcsql.msi from one of the Downloads for Windows.
Для тех, кто установил драйвер 17.1.0.1 или ниже, рекомендуется удалить его вручную перед установкой новой версии драйвера. For those who have Driver 17.1.0.1 or below installed, it is recommended that it be uninstalled manually prior to installing the newer version of the Driver.
Параллельно с Native Client Side-by-side with Native Client
Драйвер можно установить параллельно с SQL Server SQL Server Native Client. The driver can be installed side-by-side with SQL Server SQL Server Native Client. Основные версии драйвера (11, 13, 17) могут быть установлены параллельно друг с другом. Major versions of the driver (11, 13, 17) can all be installed side-by-side with each other, as well.
При инициировании msodbcsql.msi по умолчанию устанавливаются только клиентские компоненты. When you invoke msodbcsql.msi , only the client components are installed by default. Этими компонентами служат файлы, поддерживающие работу приложения, разработанного с помощью драйвера. The client components are files that support running an application that was developed using the driver. Чтобы установить компоненты пакета SDK, укажите в командной строке ADDLOCAL=ALL . To install the SDK components, specify ADDLOCAL=ALL on the command line. Ниже приведен пример. Here is an example.
Лицензия пользователя End-user license
Укажите IACCEPTMSODBCSQLLICENSETERMS=YES , чтобы принять условия лицензионного соглашения, если для установки используется параметр /passive , /qn , /qb или /qr . Specify IACCEPTMSODBCSQLLICENSETERMS=YES to accept the terms of the end-user license if you use the /passive , /qn , /qb , or /qr option to install. Этот параметр указывается только прописными буквами. This option must be specified in all uppercase letters. Ниже приведен пример. Here is an example.
Удаление без взаимодействия с пользователем Silent uninstall
В следующем примере показано выполнение удаления без взаимодействия с пользователем. The following example shows how to perform a silent uninstall.
Указание зависимость Indicate dependency
Если приложение использует драйвер, оно должно указывать, что зависит от драйвера, с помощью параметра установки APPGUID . When an application uses the driver, the application should indicate that it depends on the driver through the install option APPGUID . Это позволяет установщику драйвера вывести сведения о зависимых приложениях перед удалением. this indication enables the driver installer to report dependent applications before uninstalling. Чтобы задать зависимость от драйвера, присвойте параметру командной строки APPGUID код продукта при автоматической установке драйвера. To specify a dependency on the driver, set the APPGUID command-line parameter to your product code when silently installing the driver. Код продукта необходимо создать при использовании установщика (Майкрософт) для формирования пакета установки приложения. A product code must be created when using Microsoft Installer to bundle your application setup program. Ниже приведен пример. Here is an example.
Программы командной строки: sqlcmd.exe и bcp.exe Command-line tools: sqlcmd.exe and bcp.exe
Программы командной строки bcp.exe и sqlcmd.exe , которые используются с драйвером, можно загрузить по адресу Microsoft Command Line Utilities 11 для SQL Server, Microsoft Command Line Utilities 13 для SQL Server или Microsoft Command Line Utilities 13.1 для SQL Server. The bcp.exe and sqlcmd.exe tools for use with the driver can be downloaded at Microsoft Command Line Utilities 11 for SQL Server, Microsoft Command Line Utilities 13 for SQL Server, or Microsoft Command Line Utilities 13.1 for SQL Server. Драйвер является необходимым условием для установки sqlcmd.exe и bcp.exe . The driver is a prerequisite to install sqlcmd.exe and bcp.exe .
bcp.exe и sqlcmd.exe устанавливаются во вложенную папку 110\Tools в %PROGRAMFILES%\Microsoft SQL Server\Client SDK\ODBC для версии 11, и 130\Tools для 13 и 13.1. bcp.exe and sqlcmd.exe are installed in the 110\Tools subfolder of %PROGRAMFILES%\Microsoft SQL Server\Client SDK\ODBC for version 11, and 130\Tools for 13 and 13.1.
Приложение, использующее функции BCP, должно указывать драйвер из той же версии, которая поставлялась с файлом заголовка и библиотекой, применявшимися при компиляции приложения. An application that uses BCP functions must specify the driver from the same version which shipped with the header file and library used to compile the application.
Например, при компиляции приложения ODBC с помощью msodbcsql11.lib и msodbcsql.h используйте «DRIVER=
Компоненты Microsoft ODBC Driver for SQL Server SQL Server в Windows Components of the Microsoft ODBC Driver for SQL Server SQL Server on Windows
Драйвер ODBC для Windows состоит из следующих компонентов: The ODBC driver on Windows contains the following components:
Компонент Component | Описание Description |
---|---|
msodbcsql17.dll или msodbcsql17.dll or msodbcsql13.dll или msodbcsql13.dll or msodbcsql11.dll msodbcsql11.dll | Файл библиотеки динамической компоновки (DLL), содержащий все функциональные возможности драйвера. The dynamic-link library (DLL) file that contains all of the driver’s functionality. Этот файл устанавливается в папку %SYSTEMROOT%\System32. This file is installed in %SYSTEMROOT%\System32. |
msodbcdiag17.dll или msodbcdiag17.dll or msodbcdiag13.dll или msodbcdiag13.dll or msodbcdiag11.dll msodbcdiag11.dll | Файл библиотеки динамической компоновки (DLL), содержащий интерфейс диагностики (трассировка). The dynamic-link library (DLL) file that contains the driver’s diagnostics (tracing) interface. Этот файл устанавливается в папку %SYSTEMROOT%\System32. This file is installed in %SYSTEMROOT%\System32. |
msodbcsqlr17.rll или msodbcsqlr17.rll or msodbcsqlr13.rll или msodbcsqlr13.rll or msodbcsqlr11.rll msodbcsqlr11.rll | Сопутствующий файл ресурса для библиотеки драйвера. The accompanying resource file for the driver library. Этот файл устанавливается в папку %SYSTEMROOT%\System32\1033. This file is installed in %SYSTEMROOT%\System32\1033. |
s13ch_msodbcsql.chm или s13ch_msodbcsql.chm or s11ch_msodbcsql.chm s11ch_msodbcsql.chm | Файл справки мастера источников данных, описывающий, как создать источник данных для драйвера. The Data Source Wizard help file that documents how to create a data source for the driver. Этот файл устанавливается в папку %SYSTEMROOT%\System32\1033 This file is installed in %SYSTEMROOT%\System32\1033 ПРИМЕЧАНИЕ. Для драйвера ODBC 17 отсутствует CHM-файл. NOTE: There is no chm file for ODBC Driver 17. |
msodbcsql.h msodbcsql.h | Файл заголовка, содержащий все новые определения, необходимые для использования драйвера. The header file that contains all of the new definitions needed to use the driver. Примечание. В одной программе нельзя сочетать ссылки на msodbcsql.h и odbcss.h. Note: You cannot reference msodbcsql.h and odbcss.h in the same program. Файл msodbcsql.h для ODBC Driver 17 или 13 устанавливается в папку %PROGRAMFILES%\Microsoft SQL Server\Client SDK\ODBC\130\SDK. msodbcsql.h for ODBC Driver 17 or 13 is installed in %PROGRAMFILES%\Microsoft SQL Server\Client SDK\ODBC\130\SDK. |
msodbcsql17.lib или msodbcsql17.lib or msodbcsql13.lib или msodbcsql13.lib or msodbcsql11.lib msodbcsql11.lib | Файл библиотеки, необходимый для вызова функций служебной программы bcp, являющихся частью драйвера. The library file needed to call the bcp utility functions that are part of the driver. Примечание. Если вы включаете в программу ссылку на этот файл библиотеки, убедитесь, что этот файл находится в вашем системном пути, а также в системном пути других пользователей, которые используют это приложение. Note: If you do reference this library file in your program, make sure that it is in your system path and in the system path of those that use the application. |