{"id":30950860,"url":"https://github.com/mjfii/tsql-deployment-framework","last_synced_at":"2025-09-11T05:27:17.177Z","repository":{"id":90851989,"uuid":"90066277","full_name":"mjfii/TSQL-Deployment-Framework","owner":"mjfii","description":"A simple methodology to deploy a massive number of complex TSQL scripts.","archived":false,"fork":false,"pushed_at":"2017-05-02T22:03:13.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T18:46:57.689Z","etag":null,"topics":["framework","powershell","tsql"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjfii.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}},"created_at":"2017-05-02T18:40:26.000Z","updated_at":"2022-01-23T22:53:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"88ed764c-4615-4998-bed8-6f0b6f8fb62c","html_url":"https://github.com/mjfii/TSQL-Deployment-Framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mjfii/TSQL-Deployment-Framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjfii%2FTSQL-Deployment-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjfii%2FTSQL-Deployment-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjfii%2FTSQL-Deployment-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjfii%2FTSQL-Deployment-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjfii","download_url":"https://codeload.github.com/mjfii/TSQL-Deployment-Framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjfii%2FTSQL-Deployment-Framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274582449,"owners_count":25311621,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["framework","powershell","tsql"],"created_at":"2025-09-11T05:27:03.196Z","updated_at":"2025-09-11T05:27:17.172Z","avatar_url":"https://github.com/mjfii.png","language":"PowerShell","readme":"# TSQL Script Deployment Framework\n\nThese PowerShell (`.ps1`) scripts move through a [nested] directory structure to isolate, separate, and execute complex TSQL scripts (`.sql`).\n\n## Motivation\n\nDeploying scripts numbering in the 5's, 10's, or 100's can be difficult across multiple environments and is always pretty tedious.  Also, it can introduce a bit of room for error if something is missed or executed out of order.  I needed a framework to forward along to a DBA for them to execute for DDL deployment, maintenance, and/or metadata management.\n\n## Prerequisites\n\nThe default security level may not allow the execution of the scripts.  In order to bypass this and allow 'local' executions, run the below:\n\n```PowerShell\nset-executionpolicy remotesigned\n```\n\nAdditionally, you will need appropriate privileges on the machine where the script is being executed.\n\n## Installation\n\nNo installation is required.  Use the scripts as necessary to deploy any number of TSQL scripts.\n\n## Example\n\nIf the scripts are placed in the following folder structure with TSQL in subsequent folders, then the following will be occur:\n\n```\n    |-- execute tsql scripts.ps1\n    |-- dimensions\n        |-- customer.sql\n        |-- product.sql\n        |-- outrigger\n            |-- pricing.sql\n            |-- customer_product.sql\n    |-- facts\n        |-- sales.sql\n        |-- inventory.sql\n        |-- purchasing.sql\n```\n\n1. Each folder in same directory as the `.ps1` file will be iterated through in alphanumeric order.\n2. Each TSQL file/script will be executed in alphanumeric order.\n3. Each TSQL file/script will be broken down into batches, i.e. a `go` separator, and exectued from the top to bottom.\n4. Each sub-folder is executed in a similar fashion.\n\n## Contributors\n\nMichael Flanigan  \nemail: [mick.flanigan@gmail.com](mick.flanigan@gmail.com)  \ntwitter: [@mjfii](https://twitter.com/mjfii)  \n\n# Versioning  \n\n0.0.0.9000 - Initial deployment (2017-05-02)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjfii%2Ftsql-deployment-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjfii%2Ftsql-deployment-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjfii%2Ftsql-deployment-framework/lists"}