excel-ado-sql-data-access
Skill2 starsChanged 5 months agoMITView on GitHub
Use when Excel work needs ADO, ADODB, OLEDB, ADOMD, SQL, connection strings, parameters, recordsets, or queries against workbooks, CSV, Access, or Data Model sources.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- excel-ado-sql-data-accessSkill
- excel-bi-routerSkill
- excel-deliverable-publisherSkill
- excel-report-builderSkill
- excel-testing-fixturesSkill
- excel-vba-workbook-engineeringSkill
- excel-workbook-qa-auditorSkill
- mdx-cubevalue-extractionSkill
- office-environment-diagnosticsSkill
- power-bi-semantic-modelSkill
- power-pivot-dax-modelingSkill
- power-query-m-engineeringSkill
- excel-ado-sql-data-accessSkill
- excel-bi-routerSkill
- excel-deliverable-publisherSkill
- excel-report-builderSkill
- excel-testing-fixturesSkill
- excel-vba-workbook-engineeringSkill
- excel-workbook-qa-auditorSkill
- mdx-cubevalue-extractionSkill
- office-environment-diagnosticsSkill
- power-bi-semantic-modelSkill
- power-pivot-dax-modelingSkill
- power-query-m-engineeringSkill
- excel-bi-routerSkill
- excel-deliverable-publisherSkill
- excel-report-builderSkill
- excel-testing-fixturesSkill
- excel-vba-workbook-engineeringSkill
- excel-workbook-qa-auditorSkill
- mdx-cubevalue-extractionSkill
- office-environment-diagnosticsSkill
- power-bi-semantic-modelSkill
- power-pivot-dax-modelingSkill
- power-query-m-engineeringSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Treat VBA SQL as data-access infrastructure.
- Very specific: line 15
Run tools/inspect_excel_bi_workbook.py <workbook> --markdown from the plugin root when an Excel workbook is the source or target.
- Very specific: line 17
If provider availability is uncertain, run tools/probe_excel_bi_providers.ps1 first to detect ACE, MSOLAP, ADOMD, Excel COM, and process …
- Distinctive: line 20
Write connection string with explicit path and extended properties.
- Distinctive: line 21
Use parameterized queries where supported.
- Distinctive: line 37
Test SQL returns expected row/column count.
- Distinctive: line 38
Test empty result handling.
- Distinctive: line 39
Test file path with spaces and non-ASCII characters.
- Distinctive: line 40
Test cleanup closes files and connections.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Excel ADO SQL Data Access
Core Rule
Treat VBA SQL as data-access infrastructure. Confirm provider, connection target, query dialect, and result shape before writing code.
Workflow
- Identify source: worksheet table, workbook file, Access, CSV, external database, Data Model/cube.
- Run
tools/inspect_excel_bi_workbook.py <workbook> --markdownfrom the plugin root when an Excel workbook is the source or target. - Choose provider: ACE OLEDB for workbook-like files, ADODB for tabular sources, ADOMD for multidimensional/model queries.
- If provider availability is uncertain, run
tools/probe_excel_bi_providers.ps1first to detect ACE, MSOLAP, ADOMD, Excel COM, and process bitness; the full release gate also runs this probe with Excel COM and ADO workbook smoke enabled. - For Excel workbook SQL, run
tools/test_excel_ado_sql_access.ps1to validate provider, schema, SQL, row count, and cleanup before writing VBA. - For multidimensional/model endpoints, first use
tools/test_excel_adomd_query.ps1 -ProbeOnlyto confirm ADODB/ADOMD COM activation; with an explicit connection string, run the same script to validate connection, MDX, and cellset shape. - Write connection string with explicit path and extended properties.
- Use parameterized queries where supported; otherwise sanitize inputs carefully.
- Load recordsets into arrays or worksheet ranges.
- Close and release connection/recordset objects.
Reference Selection
Read:
references/data-access-workflow.mdfor source selection, smoke tests, and validation boundaries.references/ado-patterns.mdfor VBA ADO examples.references/connection-strings.mdfor provider templates.references/official-links.mdfor Microsoft references.
Validation
- Test connection opens.
- Test SQL returns expected row/column count.
- Test empty result handling.
- Test file path with spaces and non-ASCII characters.
- Test cleanup closes files and connections.
Boundary
Power Query is not a SQL database. Query Power Query output only after it is loaded to a sheet, table, connection, or Data Model.
Scripts
tools/inspect_excel_bi_workbook.py <workbook> [--markdown] [--out-json <path>]scans workbook connections, tables, pivot caches, formulas, VBA parts, and model/query-like parts so the data-access target can be chosen before writing ADO code.tools/probe_excel_bi_providers.ps1 [-RunExcelComSmoke] [-RunAdoWorkbookSmoke] [-OutJson <path>]detects registered provider ProgIDs, creatable COM ProgIDs, .NET ADOMD assembly availability, optional Excel COM smoke status, and optional ACE workbook SQL smoke status. The full release gate uses this script with both smoke switches to validate the local Windows provider baseline when available; structural profile skips it.tools/test_excel_ado_sql_access.ps1 -WorkbookPath <path> [-CreateFixture] -SqlText <sql> [-IncludeSchema] [-OutJson <path>]creates a known Excel fixture when requested, opens an ADODB connection through ACE OLEDB, runs workbook SQL, and emits JSON with fields, rows, schema, timing, and provider errors. The full release gate uses this script with a generic fixture to verify provider/runtime behavior; structural profile skips it for non-Excel environments.tools/test_excel_adomd_query.ps1 [-ProbeOnly] [-ConnectionString <text>] [-Mdx <text>|-MdxPath <path>] [-OutJson <path>]probes ADOMD COM activation or runs an explicit ADOMD/MSOLAP endpoint MDX query and emits axes, cells, truncation, and redacted connection-string metadata. The full release gate uses-ProbeOnlyto validate local COM runtime availability without claiming that any specific cube endpoint has been queried.tools/invoke_excel_bi_com.sh provider-probe [--excel-com] [--ado-workbook-smoke] [--out-json <path>]runs the provider probe from Windows Git Bash/MSYS/Cygwin.tools/invoke_excel_bi_com.sh ado-query -w <workbook> --sql <sql> [--create-fixture] [--include-schema] [--out-json <path>]runs the ADO workbook SQL smoke tool from Windows Git Bash/MSYS/Cygwin.tools/invoke_excel_bi_com.sh adomd-query [--probe-only] [--connection-string <text>] [--mdx <text>|--mdx-file <path>] [--out-json <path>]runs ADOMD probing or endpoint query validation from Windows Git Bash/MSYS/Cygwin.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

