.ODC

Файл ODC

Office Data Connection
Задать вопрос
БЫСТРЫЙ ОТВЕТ

An ODC file is an Office Data Connection - a small text file that tells Excel how to connect to an external database, OLAP cube, or web query. It holds no data itself. Double-click it in Excel to import the connection, then refresh to pull the actual data. Treat it as sensitive: the connection string inside is stored in plain text and may contain server names or credentials.

Разработчик: Microsoft Категория: Файлы параметров MIME: application/vnd.ms-office.odc
ОТКРЫВАЕТСЯ НА Windows macOS
Связанные: .ICA · .DS_STORE · .WMZ · .CFG

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Jul 17, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла ODC?

.odc is a text-based file format developed by Microsoft for use with Excel and other Office applications. .odc files are used for accessing data from external resources such as databases, OLAP cubes, spreadsheets, or text files. Structurally, each .odc file is an HTML document with an embedded XML island - specifically an <odc:OfficeDataConnection> block - that stores the connection string, command type, and query details needed to reach the external source. Files can be opened in any web browser or text editor as well as in Excel itself.

An .odc file does not contain data; it stores the instructions for how Excel should connect to and refresh data from that source. Each file holds information about the data source including its location, type, authentication credentials, and any associated SQL or MDX queries. Because connection strings may embed server names and credentials, .odc files can expose sensitive infrastructure details if shared without care.

.odc support was introduced in Microsoft Office 2007, which also added built-in data connection management directly within Excel. Files can be created and exported from Excel, and Excel uses them to refresh connected tables and PivotTables from the specified source. In modern Microsoft 365 Excel, Power Query / Get & Transform connections increasingly complement standalone .odc files, though .odc remains fully supported.

Безопасность и защита

РИСК: MEDIUM

The .odc file is plain HTML/XML and not executable, but it carries real risks: (1) connection strings are stored in clear text and can expose server names and sometimes credentials - treat .odc files as sensitive; (2) opening an .odc in Excel can trigger an external data connection that pulls from a remote source, which has been used in data- exfiltration/phishing scenarios, so don't open .odc files from untrusted senders; Excel warns before enabling external connections - heed it.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕOffice Data Connectionтакже известен как Office Data Connection file, Excel data connection file
РАЗРАБОТЧИКMicrosoftс Microsoft Office 2007
MIME-ТИПapplication/vnd.ms-office.odc
ТИПHTML/XML connection-definition file (text)
СВЯЗАННЫЕ.ica.ds_store.wmz.cfg
Это расширение также используется в…
  • Lotus Notes / generic OpenDocument confusion - Some catalogs mislabel .odc as an OpenDocument file; that is incorrect - .odc is Microsoft's Office Data Connection, not an ODF format.

Программы, открывающие файлы ODC

Windows3 apps
Microsoft Excel Платно Double-click the .odc; Excel opens it and imports the connection into a new or existing workbook (then refresh to pull data).
Notepad / Notepad++ (or any text editor) Бесплатно Open the .odc to read the connection string and query without connecting to anything.
Any web browser Встроенная Open the .odc to view it as HTML (it is an HTML document) - read-only inspection.
macOS1 app
Microsoft Excel for Mac Платно Open/import the .odc connection; note some external-data features differ from Windows Excel.

Технические подробности

глубокая спецификация
DeveloperMicrosoft
Primary MIME typeapplication/vnd.ms-office.odc
Alternative MIME typestext/x-ms-odc; text/html
File structureHTML document wrapping an embedded XML island
Core XML element<odc:OfficeDataConnection> within an inline <xml> block
File encodingUTF-8 plain text
EncryptionNone - connection strings and credentials stored in plain text
Typical file size1 KB - 10 KB
File identificationHTML meta tag with ProgId=ODC.Database or ODC.Table; no binary magic bytes
Supported connection targetsRelational databases (SQL Server, Access), OLAP/Analysis Services cubes, Excel workbooks, text files, web queries
Stored parametersConnection string, command type (SQL / MDX / Table), command text, authentication settings, display metadata
Supported platformsWindows; macOS (Excel for Mac)
Modern complementPower Query / Get & Transform connections (Microsoft 365 Excel) increasingly replace .odc files, though .odc remains supported
Related Excel connection formats.iqy (web query), .dqy (database query), .udl (universal data link), .rqy (OLAP query)
ВыпущенMicrosoft Office 2007
Последняя версияTracks the Office version (Microsoft 365 Excel)
Спецификацияlearn.microsoft.com

Конвертации ODC

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами ODC. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах ODC.

Часто задаваемые вопросы

What is an .odc file and is it my data?
No - it's an Office Data Connection, a small file that tells Excel HOW to connect to an external data source (database, cube, web query). It holds no data itself; the data lives in the source it points to.
How do I open an .odc file?
Double-click it in Excel to import the connection, then refresh to load data. To just read what it connects to, open it in any text editor or browser - it's HTML/XML.
Why doesn't my .odc show a spreadsheet?
Because it isn't one. It's a connection definition. You use it in Excel to fetch data from an external source; the .odc by itself is just settings.
Where are .odc files stored?
Usually in your 'My Data Sources' folder (Documents\My Data Sources), so connections can be reused across workbooks.
Is it safe to open an .odc file from someone else?
Be careful. It can make Excel connect to a remote source, and its connection string may expose credentials. Don't open .odc files from untrusted senders, and respect Excel's external-data warnings.
What's the difference between .odc and .iqy?
Both are Excel connection helpers. .iqy is a simple web query (a URL plus parameters); .odc is the richer Office Data Connection (database/OLAP/web) stored as HTML+XML.

Ссылки

1Microsoft - Office Data Connection (ODC) file format docslearn.microsoft.com
2Microsoft Support - Create, edit, and manage connections to external datasupport.microsoft.com

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.BINCD/DVD Disc Image (BIN/CUE)
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.XDWDocuWorks Document

Похожие расширения

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z