Local StudioDATABASE TOOLS

SQL Script Analyzer

Use this local SQL script analyzer to review PostgreSQL, MySQL, or MariaDB scripts. Filter statement types and open their exact source excerpts.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
SQL Script Analyzer showing the sample inventory, a selected CREATE statement, and its source excerpt.
The sample inventory locates the real CREATE TABLE statement while quoted examples stay inside their original SQL spans.

How to Inspect a SQL Script

  1. Open the HTML, review Security Check, then select Continue.
  2. Open a UTF-8 SQL file or select Open Sample.
  3. Choose PostgreSQL, MySQL, or MariaDB and set Verify Literal INSERT Tuples as needed.
  4. Select Analyze Script. Choose a statement count or source location to inspect the exact excerpt.
  5. Select Build JSON Report, then Download for span and diagnostic metadata.

SQL Script Analyzer Features

  • Count recognized CREATE, ALTER, DROP, TRUNCATE, INSERT, and supported PostgreSQL COPY spans, with additional header classifications.
  • Separate verified literal INSERT tuples and COPY data lines from SQL statement counts.
  • Filter by statement type or object name, jump to the original excerpt, and save the inventory as JSON.

Formats and Compatibility

InputA local .sql or .txt script encoded in UTF-8, using the supported PostgreSQL, MySQL, or MariaDB dump syntax.
OutputAn inventory of observed spans with source locations, object context, separate row evidence, and diagnostics. The downloadable report is JSON.
BrowserA modern browser with local file support.
ScopeOne UTF-8 SQL script up to 32 MiB. The inventory records up to 100,000 verified spans before marking the remainder unsupported.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Use the SQL script analyzer without uploading files. This browser-based tool reads the selected text locally with no upload or account. Open Sample loads synthetic SQL.

Select Open Sample to see the workflow with the included example.

Review DDL and Data Statements Together

The statement type filters let you inspect SQL DDL DML statements in the same inventory. The analyzer reads source text, keeps quoted and commented keywords in context, and records client directives as inert spans.

Trace a Finding to Its SQL

Choose a count or a source location to inspect the original SQL. An incomplete inventory retains earlier spans and points to the first boundary the analyzer could not verify.

Frequently Asked Questions

Can I use the SQL script analyzer offline?

Yes. Extract the Tool ZIP and open the standalone HTML. It processes the selected file locally.

Where is the SQL script analyzer download?

Choose Download Tool ZIP for the free SQL script analyzer and its instructions.

Can I use the SQL script analyzer in browser mode?

Yes. Open a UTF-8 script from your device or use the synthetic sample.

Is an INSERT count the same as a row count?

Each bounded INSERT has one statement span. The optional check counts complete supported literal tuples separately. INSERT SELECT, expressions, and unverified forms have an unknown tuple count.

How does the analyzer handle COPY?

The supported PostgreSQL default-text COPY FROM STDIN profile reports physical data lines up to the end marker. It does not validate imported row values.

When is an inventory incomplete?

An unfinished quote, missing COPY end marker, or unsupported construct that obscures the remaining boundaries stops the scan at that span. The prior bounded spans remain available.

Does the analyzer run the script?

It only reads and classifies text. Server-side syntax rules, optimizer behavior, and runtime effects are outside the inventory scope.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.