{"id":23542365,"url":"https://github.com/malexandersalazar/tools-python-mssql-statistics-descriptor","last_synced_at":"2026-05-16T08:43:05.951Z","repository":{"id":164616792,"uuid":"640072769","full_name":"malexandersalazar/tools-python-mssql-statistics-descriptor","owner":"malexandersalazar","description":"A lightweight tool based on sweetviz that generates high-density visualizations to kickstart Exploratory Data Analysis within Microsoft Azure SQL Database using ODBC with just one line of code","archived":false,"fork":false,"pushed_at":"2023-05-16T02:34:24.000Z","size":436,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T06:11:31.325Z","etag":null,"topics":["azure-sql-database","data-analysis","data-visualization","eda","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malexandersalazar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-12T23:16:17.000Z","updated_at":"2023-05-12T23:26:46.000Z","dependencies_parsed_at":"2024-03-22T11:48:15.185Z","dependency_job_id":null,"html_url":"https://github.com/malexandersalazar/tools-python-mssql-statistics-descriptor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malexandersalazar/tools-python-mssql-statistics-descriptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malexandersalazar%2Ftools-python-mssql-statistics-descriptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malexandersalazar%2Ftools-python-mssql-statistics-descriptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malexandersalazar%2Ftools-python-mssql-statistics-descriptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malexandersalazar%2Ftools-python-mssql-statistics-descriptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malexandersalazar","download_url":"https://codeload.github.com/malexandersalazar/tools-python-mssql-statistics-descriptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malexandersalazar%2Ftools-python-mssql-statistics-descriptor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266008411,"owners_count":23863538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-sql-database","data-analysis","data-visualization","eda","python"],"created_at":"2024-12-26T06:11:45.433Z","updated_at":"2026-05-16T08:42:59.982Z","avatar_url":"https://github.com/malexandersalazar.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSSQL Statistics Descriptor\n\n![alt text](/img/viz.png \"Snowflake Statistics Descriptor\")\n\nA lightweight tool based on sweetviz that generates high-density visualizations to kickstart Exploratory Data Analysis within Snowflake with just one line of code.\n\n## Installation\n\nCopy the `main.py` script and install the requirements located in the dist folder.\n\n```\npip install -r requirements.txt\n```\n\nWe will also need to download and install the ODBC Driver for SQL Server, this repo is using the ODBC Driver 18 for SQL Server version.\n\n[Download ODBC Driver for SQL Server](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server)\n\n## Getting Started\n\n| Positional argument | Example |\n| --- | --- |\n| server | tcp:my-sqldbs-dev.database.windows.net |\n| database | sqldb-adventureworkslt-dev |\n| schema | MySchema |\n\n| Option | Example/Description |\n| --- | --- |\n| -h, --help | show this help message and exit |\n| -u, --user | database-user, server-admin@contoso.com |\n| -p, --password | specifies the user password, required only at non-interactive login |\n| -r, --rows | specifies the number of rows to sample from the table (default: 500000) |\n| -l, --level | specifies the database object level in which the analysis should be executed, \"s\" for schema and \"t\" for table (default: \"s\") |\n| -t, --table | specifies the database table name |\n| --associations | indicates that a correlation graph should be generated |\n| --open-browser | indicates that a web browser tab should be opened while datasets are analyzed |\n| --interactive | indicates that program should authenticate with an Azure Active Directory identity using interactive authentication, requires Azure Active Directory admin enabled on Azure SQL server resource |\n\nThe default behaviour of the script will load and analyze the specified number of rows of each table in the selected database schema.\n\n```\npython main.py tcp:my-sqldbs-dev.database.windows.net sqldb-adventureworkslt-dev SalesLT -u=database-user -p=S3cUr3P@S$w0rD -r=10000\n```\n\nThe program will build and save locally high-density HTML visualizations and generate an Excel summary with table name, table rows, data size, table index size and parsed record count in a new folder called **obj**.\n\n![alt text](/img/cmd.png \"Azure SQL Database Statistics Descriptor\")\n\nIf we need a correlation graph to be generated for the columns of each table, we must include the `--associations` flag.\n\n```\npython main.py tcp:my-sqldbs-dev.database.windows.net sqldb-adventureworkslt-dev SalesLT -u=database-user -p=S3cUr3P@S$w0rD -r=10000 --associations\n```\n\nWe must consider that correlations and other associations may take a **quadratic time (n^2)** to complete.\n\n![alt text](/img/associations.png \"Azure SQL Database Statistics Descriptor\")\n\nIf we only need the analysis for a single table we must specify \"**t**\" as `-l` or `--level` argument value with the corresponding **table name** in `-t` or `--table` argument.\n\n```\npython main.py tcp:my-sqldbs-dev.database.windows.net sqldb-adventureworkslt-dev SalesLT -u=database-user -p=S3cUr3P@S$w0rD -r=500000 -l=t -t=Product\n```\n\nIf we need an Azure Active Directory authentication we have to set the `--interactive` flag and enable Azure Active Directory admin for our database.\n\n```\npython main.py tcp:my-sqldbs-dev.database.windows.net sqldb-adventureworkslt-dev SalesLT -l=t -t=Product -r=10000 --open-browser --interactive\n```\n\n![alt text](/img/aad.png \"Azure SQL Database Statistics Descriptor\")\n\n## Prerequisites\n\nMSSQL Statistics Descriptor was tested with:\n\n* Python: 3.7.16\n* Packages:\n    * pyodbc: 4.0.39\n    * pandas: 1.3.5\n    * sweetviz: 2.1.4\n    * XlsxWriter: 3.1.0 \n* Anaconda: 2.4.0\n\n## License\n\nThis project is licenced under the [MIT License][1].\n\n[1]: https://opensource.org/licenses/mit-license.html \"The MIT License | Open Source Initiative\"","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalexandersalazar%2Ftools-python-mssql-statistics-descriptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalexandersalazar%2Ftools-python-mssql-statistics-descriptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalexandersalazar%2Ftools-python-mssql-statistics-descriptor/lists"}