GSP .NET SQL data lineage example
https://www.sqlparser.com/dotnet-sql-lineage/

Requires the .NET 10 SDK and access to NuGet for the first restore.
This project pins the public gudusoft.gsqlparser trial package 4.1.0.18.

Run these commands from the extracted directory:

  dotnet run
  dotnet run -- oracle

The first command analyzes sqlserver.sql and writes sqlserver.xml and
sqlserver.json. The second analyzes oracle.sql and writes oracle.xml and
oracle.json. Existing result files with those names are overwritten.
The included XML/JSON files were produced by this program, not written by hand.
The program reports analyzer diagnostics to stderr and returns 1 on errors.

The SQL Server example traces five SELECT INTO target columns through
CONCAT, STRING_AGG, SUM, MAX and FORMAT. The Oracle example traces a
CREATE VIEW with a join and an aggregate. No database connection or JVM
is required. The C# source is displayed verbatim on the product guide.

The third DataFlowAnalyzer constructor argument selects simplified output.
Use false to retain intermediate result sets. The program generates XML
with generateDataFlow() and converts getDataFlow() to SQLFlow JSON.
Always dispose of the analyzer after use.

The public trial rejects SQL longer than 10,000 characters. These examples
were verified on 2026-10-27; they do not certify every SQL construct or
every advanced Oracle procedure against this public package. Request a
current evaluation build for longer scripts and recent PL/SQL additions.

More output options, CSV, table lineage and offline metadata:
https://github.com/sqlparser/gsp_demo_dotnet/tree/master/src/demos/dlineage

Evaluation contact: info@sqlparser.com
