The dc2sql.exe command line utility requires the following base syntax and available switches for its configuration pipeline:
⚙️ Command Syntax
cmd dc2sql.exe --config <path_to_json> [switches] Use code with caution.
🎛️ Available Switches
• --config : Specifies the absolute or relative filesystem path pointing to your deployment JSON configuration manifest. • --help / -h: Displays the built-in command-line interface reference guide and parameter descriptions.
🚀 Example Execution
dc2sql.exe --config C:\Mercwar-AI\dc2sql-config.json
The utility automatically requests Administrative Elevation via UAC (runas) if launched under a standard user context.
dc2sql.exe --config <path_to_json> [switches]
--config <path>— Specify the absolute or relative path to the deployment JSON configuration.--help,-h— Display the CLI reference guide and parameter descriptions.
dc2sql.exe --config C:\Mercwar-AI\dc2sql-config.json
An enterprise-grade, administrative-elevated database translation and compilation architecture designed for the dc2sql database migration framework.
This suite automates high-performance database routing and native PE binary compilation for Windows native environments.
To test table creation and insert multiple rows (echoes), execute each command as a separate, individual CLI invocation rather than chaining them together in a single string.
Initialize the TestEcho schema in your workspace database:
dc2sql.exe -db test_workspace.mdb -query "CREATE TABLE TestEcho (ID AUTOINCREMENT PRIMARY KEY, Message TEXT(255), LogTime DATETIME)"Add the first status log entry:
dc2sql.exe -db test_workspace.mdb -query "INSERT INTO TestEcho (Message, LogTime) VALUES ('System Echo Alpha - Online', Now())"Add the second status log entry:
dc2sql.exe -db test_workspace.mdb -query "INSERT INTO TestEcho (Message, LogTime) VALUES ('System Echo Beta - Active', Now())"Query the table with diagnostics enabled to confirm all records were written properly:
dc2sql.exe -db test_workspace.mdb -query "SELECT * FROM TestEcho" -diagThis failure occurs because Microsoft Jet / DAO does not support batch multi-statement execution (chaining multiple SQL statements separated by semicolons, such as CREATE TABLE...; INSERT INTO...;) within a single jet_execute_action call.
💡 Easy How TO: Every query string passed to
jet_initorjet_exec_actmust be a single, standalone SQL statement.
The pipeline consists of a robust C-based runner utility (dc2sql.exe) paired with core database provider binaries and helper dynamic-link libraries:
C:\Mercwar-AI\
│
├── dc2sql-config.json # Centralized deployment configuration
├── dc2sql_targets.ini # Target asset manifest
│
└── dc2sql\ # Target Binaries Directory
├── dc2jet.dll # Microsoft Jet / Database bridge component
├── dc2sql.dll # Core translation and database routing library
└── dc2sql.exe # Primary command-line interface & routing engine
This section provides a clear, beginner-friendly walkthrough on how to create your legacy database file, place it in the ecosystem, and query it using the dc2sql engine.
Because dc2sql and dc2jet utilize the Microsoft Jet Database Engine, your underlying database can be created as a standard Microsoft Access database file (.accdb or .mdb).
- Open Microsoft Access (or any compatible database manager supporting Microsoft Jet).
- Create a new blank database and save it locally as
inventory.accdb(orLegacyLedger.mdb). - Define your tables, fields, and records (e.g., a
Productstable with columnsProductID,ProductName, andUnitsInStock).
Move your newly created database file into your project folder structure so the engine can resolve its path:
C:\Mercwar-AI\
├── data\
│ └── inventory.accdb <-- Place your created database here
├── dc2sql-config.json
└── dc2sql_targets.ini
Once your database is in place, your applications or scripts can route queries through dc2sql.exe or dc2sql.dll using standard relational SQL syntax:
-- Connecting and querying your created database file
USE [C:\Mercwar-AI\data\inventory.accdb];
SELECT ProductID, ProductName, UnitPrice
FROM Products
WHERE UnitsInStock < 10;
The dc2sql and dc2jet suite functions as a high-performance database bridge and SQL router. It eliminates the friction of legacy file-based databases—such as Microsoft Access (.mdb / .accdb) or Microsoft Jet engine files stored on local disks, network shares, or cloud-synced folders—by translating standard SQL queries directly into native DAO (Data Access Objects) operations.
Instead of rewriting legacy applications to use a heavy client-server database engine, dc2sql allows modern software to talk to file-based data stores using standard relational SQL syntax, reading directly from any accessible drive or path.
The connection mechanism relies on direct path resolution and runtime file mapping handled by dc2jet.dll and dc2sql.dll:
- Path Resolution: The application points to a physical or network file path where your database file resides.
- Engine Initialization (
dc2jet.dll): The Microsoft Jet database engine is loaded in-process, attaching securely to the specified file path via DAO/ODBC providers. - SQL Translation (
dc2sql.dll): Incoming SQL queries (SELECT, INSERT, UPDATE, DELETE) are intercepted, optimized, and converted into native Jet/DAO commands executed against the file on disk. - Result Streaming: Records are piped back through the router to the calling application as clean standard result sets.
In enterprise and low-level Windows environments, developers frequently encounter legacy file-based databases—such as Microsoft Access .mdb or .accdb files relying on the Microsoft Jet Database Engine. Migrating these systems to client-server engines like SQL Server or PostgreSQL is often cost-prohibitive or structurally impractical.
The dc2sql and dc2sql architecture solves this engineering challenge by providing a zero-overhead, native C translation layer.
- Eliminates Heavy RDBMS Dependencies: Applications can query file-based databases using standard relational SQL without requiring a running database server instance (like MySQL or SQL Server) on the host machine.
- Direct Native Performance: Built using pure C (C89/C99) and the Win32/COM API,
dc2sqlavoids the massive memory overhead and framework abstraction layers of managed runtimes, integrating directly into low-level DLL pipelines (dc2sql.dllanddc2jet.dll). - Unified CLI & Automation Support: The
dc2sql.exeutility allows developers to script database migrations, catalog compilations, and verification routines directly inside Windows Batch or PowerShell automation pipelines. - Cryptographic Supply Chain Security: Every binary and catalog within the suite is secured using automated Authenticode signing, CDF security catalogs, and custom root certificate authorities (
signtool/makecat), ensuring tamper-evident runtime execution under Windows 11.
Because the dc2jet component relies directly on the Microsoft Jet Database Engine (Joint Engine Technology) and Data Access Objects (DAO), it provides high-speed, in-process access to legacy Microsoft database formats (.mdb and .accdb) without requiring an external database service.
The Microsoft Jet engine has historically served as the foundational data management backbone for Microsoft Access, Visual Basic 6, and various Office automation tools. dc2jet.dll acts as a specialized low-level bridge layer that interfaces directly with Microsoft's COM-based database providers (Microsoft.Jet.OLEDB.4.0 or Microsoft.ACE.OLEDB.12.0).
- In-Process Execution: Unlike client-server databases that require a separate service daemon (e.g.,
mysqld.exeorsqlservr.exe), Jet executes entirely within the memory space of the calling process viadc2sql.dllanddc2jet.dll. - Direct File Locking & Page Management: Jet manages table pages, record locking, indexes, and transactional integrity directly at the file level on the host or network drive.
- COM/OLE DB Interoperability:
dc2jetutilizes COM initialization (CoInitializeEx) and OLE DB connection strings to negotiate query execution plans with the underlying Windows database drivers.
When an application queries a database through dc2jet, the engine performs the following low-level operations against the file system:
- Workspace Allocation: Opens a DAO/Jet workspace session, managing user security levels and system database references.
- Buffer and Page Caching: Maps database pages into local memory buffers to accelerate index traversal and row lookups.
- Jet SQL Translation: Translates standard relational requests into Jet-optimized SQL ASTs (Abstract Syntax Trees), resolving table joins, filters, and aggregations before returning the flat row sets to
dc2sql.
Here is a high-impact, standalone section specifically written for your dc2sql interface. You can paste this directly into your README.md right under the Execution & Command-Line Reference section to highlight the power of your command-line engine.
The dc2sql.exe binary is the core execution driver of the suite—a zero-dependency, ultra-lightweight Win32 command-line interface engineered in pure C. Designed for high-throughput database translation, automated drive mounting, and background processing, dc2sql enables developers to interface with file-backed SQL databases without spawning external UI dependencies or heavy server daemons.
- UAC Auto-Elevation Pipeline: Built with native Win32 token checks (
IsUserAnAdmin). If executed without administrative privileges,dc2sqlrequests UAC elevation on-the-fly (runas) and re-spawns itself seamlessly to ensure unrestricted hardware and low-level drive access. - Scripted & Headless Automation: Perfectly suited for integration into Windows Batch (
.bat), PowerShell (.ps1), or scheduled automated tasks (schtasks). Execute batch queries, execute schema migrations, or dynamically mount remote network database shares in unattended environments. - Dynamic Configuration Parsing: Uses a specialized, single-pass memory parser to read raw JSON configuration files (
dc2sql-config.json) and INI manifests without pulling in bloated third-party dependencies.
dc2sql.exe --config <path_to_json> [options]
| Switch / Flag | Description |
|---|---|
--config <path> |
[Required] Sets the absolute or relative path to the primary JSON configuration matrix. |
--help, -h |
Displays the interactive command-line reference, version info, and usage switches. |
--elevated |
[Internal] Programmatically appended when the CLI re-launches under administrative privilege elevation. |
@echo off
echo Running automated dc2sql workspace connection...
C:\Mercwar-AI\dc2sql\dc2sql.exe --config C:\Mercwar-AI\dc2sql-config.json
if %ERRORLEVEL% EQU 0 (
echo [SUCCESS] Database routing pipeline executed cleanly.
) else (
echo [ERROR] Pipeline failure with exit code: %ERRORLEVEL%
)
# Execute dc2sql directly within a PowerShell pipeline
$cliPath = "C:\Mercwar-AI\dc2sql\dc2sql.exe"
$configPath = "C:\Mercwar-AI\dc2sql-config.json"
$process = Start-Process -FilePath $cliPath -ArgumentList "--config `"$configPath`"" -Wait -NoNewWindow -PassThru
Write-Host "dc2sql Execution Complete. Exit Code: $($process.ExitCode)"
🌎 Don't forget to check out the new FREE Digital Signer... Once you sign it yourself, it's your own WORLD!
MERCWAR AI SOFTWARE :: LEGAL & CRYPTOGRAPHIC NOTICE
• Document Version: 1.1.0-Release • Effective Date: November 5, 2026 • Primary Author / Copyright Holder: Joseph Michael Catalano, Mercwar • Publisher / Authority: Mercwar AI Code Signing Authority
- Intellectual Property & Ownership
All source code, binary assemblies, cryptographic catalog definitions (.cdf), security catalogs (.cat), resource manifests (.rc), and utility architectures associated with the dc2sql, dc2jet, and dc2sql suite are the exclusive intellectual property of Joseph Michael Catalano and Mercwar AI. All rights are reserved globally.
- Licensing & Distribution Restrictions
Unauthorized reverse engineering, unauthorized decompilation, stripping of PE version metadata, or unauthorized redistribution of signed assemblies outside the authorized Mercwar AI operational ecosystem is strictly prohibited.
- Cryptographic Integrity & Code Signing
The binaries, dynamic-link libraries, and security catalogs distributed under this ecosystem are protected by cryptographic SHA-256 Authenticode signatures and catalog-level file hashes. Any modification, binary patching, or tampering with compiled PE assets will invalidate the security catalog (dc2sql.cat), triggering Windows Defender and operating system security blocks.
- Warranty Disclaimer
THIS SOFTWARE AND ASSOCIATED COMPILATION PIPELINES ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE. END OF LEGAL NOTICE
Because the dc2jet component relies directly on the Microsoft Jet Database Engine (Joint Engine Technology) and Data Access Objects (DAO), it provides high-speed, in-process access to legacy Microsoft database formats (.mdb and .accdb) without requiring an external database service.
The Microsoft Jet engine has historically served as the foundational data management backbone for Microsoft Access, Visual Basic 6, and various Office automation tools. dc2jet.dll acts as a specialized low-level bridge layer that interfaces directly with Microsoft's COM-based database providers (Microsoft.Jet.OLEDB.4.0 or Microsoft.ACE.OLEDB.12.0).
- In-Process Execution: Unlike client-server databases that require a separate service daemon (e.g.,
mysqld.exeorsqlservr.exe), Jet executes entirely within the memory space of the calling process viadc2sql.dllanddc2jet.dll. - Direct File Locking & Page Management: Jet manages table pages, record locking, indexes, and transactional integrity directly at the file level on the host or network drive.
- COM/OLE DB Interoperability:
dc2jetutilizes COM initialization (CoInitializeEx) and OLE DB connection strings to negotiate query execution plans with the underlying Windows database drivers.
When an application queries a database through dc2jet, the engine performs the following low-level operations against the file system:
- Workspace Allocation: Opens a DAO/Jet workspace session, managing user security levels and system database references.
- Buffer and Page Caching: Maps database pages into local memory buffers to accelerate index traversal and row lookups.
- Jet SQL Translation: Translates standard relational requests into Jet-optimized SQL ASTs (Abstract Syntax Trees), resolving table joins, filters, and aggregations before returning the flat row sets to
dc2sql.



