This is a tool that will create a Neo4j Graph Database of SQL Server databases, mapping the objects' inter and intra dependencies.
Whilst Neo4j does have the capability to import data from SQL server directly, it does not represent a dataless schema very well. Especially when a database has been developed with very few Keys.
- Install Neo4j and configure your first project
- Install Python
- Edit the necessary configuration in the file called
example.env
and rename it to.env
- Run
main.py
- Open Neo4j Desktop and query the
sqldependencygraph
database
The below examples are produced using Microsoft's AdventureWorksLT2019
database provided under the cc-by-sa 4.0 license.
CALL db.schema.visualization()
OR
CALL apoc.meta.graph()
MATCH (t {name: "uspPrintError"})-[r]-(a) RETURN *
MATCH (t {name: "uspPrintError"})-[r*1..3]-(a) RETURN *
MATCH (n) RETURN n