Что такое формат файла DTSX?
A .dtsx file is an XML-based ETL (Extract, Transform, Load) package definition used by Microsoft SQL Server Integration Services (SSIS). Introduced with SQL Server 2005, .dtsx replaced binary Data Transformation Services packages from SQL Server 2000.
The file is a plain UTF-8 XML document whose root element is <DTS:Executable>, declared in the www.microsoft.com/SqlServer/Dts namespace. It encodes the full definition of an SSIS ETL workflow, including:
- Control flow tasks, containers, and precedence constraints
- Data flow pipelines (sources, transformations, destinations)
- Connection managers, variables, and event handlers
- Package configuration and protection settings
Packages are authored in Visual Studio with the SQL Server Data Tools (SSDT) extension, where they live alongside a project file (.dtproj) and optional configuration files (.dtsConfig). When a project is built for the project deployment model, all packages are bundled into an .ispac archive. At runtime, packages are executed by the command-line tool DTExec.exe or by the SSIS Catalog (SSISDB) hosted on a SQL Server instance.
Sensitive connection properties such as passwords are protected by the ProtectionLevel attribute, which supports several encryption modes using a user key or a password. Packages may also carry an XML digital signature verified on load.
Because .dtsx is plain XML, any text editor can open and inspect it, though hand-editing complex packages is not recommended due to the intricate XML structure.
Безопасность и защита
РИСК: MEDIUMA .dtsx is XML, but it can embed connection strings and (per ProtectionLevel) encrypted credentials, and it can be configured to run SQL, scripts and file operations - a package from an untrusted source can perform powerful actions when executed. Review the XML before running an unknown package, and never run one you do not trust. Packages built with EncryptSensitiveWithUserKey only decrypt sensitive values on the original author's machine/account.
Детали формата
в двух словахПрограммы, открывающие файлы DTSX
Технические подробности
глубокая спецификация| File encoding | UTF-8 XML text |
| Magic bytes | 3C 3F 78 6D 6C ("<?xml") at offset 0; optionally preceded by UTF-8 BOM (EF BB BF) |
| Root XML element | <DTS:Executable> in namespace www.microsoft.com/SqlServer/Dts |
| MIME type | application/xml (also text/xml) |
| Internal version attribute | PackageFormatVersion attribute encodes the SQL Server release the package targets (e.g., value 8 for SQL Server 2019) |
| Encryption | ProtectionLevel attribute supports EncryptSensitiveWithUserKey, EncryptSensitiveWithPassword, EncryptAllWithUserKey, EncryptAllWithPassword, or DontSaveSensitive |
| Digital signature | Optional XML digital signature; CheckSignatureOnLoad property enforces signature verification at runtime |
| Package components | Encodes control flow (tasks, containers, precedence constraints), data flow pipelines, connection managers, variables, parameters, and event handlers in a single XML document |
| Typical file size | A few KB for simple packages; several MB for complex multi-task packages with many components |
| Deployment artifact | Packages are compiled and bundled into an .ispac archive for the project deployment model |
| Runtime executor | DTExec.exe command-line utility; SQL Server Agent job steps; or Azure-SSIS Integration Runtime in the cloud |
| Authoring environment | Visual Studio with SSDT (SQL Server Data Tools) SSIS Projects extension |
| Catalog storage | Deployed packages are stored and executed from the SSISDB database (SSIS Catalog) on SQL Server |
| Related companion files | .dtsConfig for external configuration; .conmgr for shared connection managers; .dtproj for the Visual Studio project definition |
| Platform | Windows (SSIS runtime); extended to Azure via Azure-SSIS Integration Runtime in Azure Data Factory |
| Выпущен | 2005 (SQL Server 2005 introduced SSIS, replacing SQL Server 2000 DTS) |
| Последняя версия | SSIS package format tracks SQL Server releases (2005-2022 and Azure-SSIS) |
| Спецификация | learn.microsoft.com |
Конвертации DTSX
Вопросы и ответы сообщества
спрошено пользователямиВопросов пока нет - станьте первым, кто спросит о файлах DTSX.