{"id":20962409,"url":"https://github.com/smpetersgithub/microsoft-sql-server-scripts","last_synced_at":"2025-12-24T18:40:31.649Z","repository":{"id":197247499,"uuid":"698276331","full_name":"smpetersgithub/Microsoft-SQL-Server-Scripts","owner":"smpetersgithub","description":"A repository for quick reference to my SQL recipes","archived":false,"fork":false,"pushed_at":"2024-02-10T15:51:39.000Z","size":141,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T00:56:30.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smpetersgithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-29T14:49:18.000Z","updated_at":"2024-12-14T19:49:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"2905525f-e3db-43ed-8548-87d948729cc8","html_url":"https://github.com/smpetersgithub/Microsoft-SQL-Server-Scripts","commit_stats":null,"previous_names":["smpetersgithub/sql-scripts","smpetersgithub/microsoft-sql-server-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smpetersgithub%2FMicrosoft-SQL-Server-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smpetersgithub%2FMicrosoft-SQL-Server-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smpetersgithub%2FMicrosoft-SQL-Server-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smpetersgithub%2FMicrosoft-SQL-Server-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smpetersgithub","download_url":"https://codeload.github.com/smpetersgithub/Microsoft-SQL-Server-Scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243358317,"owners_count":20277996,"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":[],"created_at":"2024-11-19T02:33:10.812Z","updated_at":"2025-12-24T18:40:31.593Z","avatar_url":"https://github.com/smpetersgithub.png","language":"TSQL","readme":"# Microsoft SQL Server Scripts\n\nThis repository contains a collection of my SQL scripts saved in one convenient place.  Feel free to rummage around.  \n\nIn the **Tools** folder, you'll find an assortment of useful scripts, including those for generating a well-structured calendar table, conducting data profiling, and offering quick fixes for common data issues I face on a routine basis.  These scripts are a little more involved and I include instructions on their usage. \n\nThe **Scripts** folder serves as a repository for all the scripts I employ to query system tables or provide some quick solutions to common problems.  These scripts are pretty straight forward, just follow the code comments at the top of each script.  \n\n:keyboard:\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;All SQL is written in Microsoft SQL Server T-SQL, unless otherwise noted.\n\n:question:\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;If you have any questions, please feel free to create a GitHub discussion. I am always happy to help out and explain different solutions.\n\n:mailbox:\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;If you find any inaccuracies, misspellings, bugs, dead links, etc., please report an issue! No detail is too small, and I appreciate all the help.\n\n:smile:\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Happy coding!\n\nI hope you find this repository useful and informative, and I welcome any new puzzles or tips and tricks you may have. I also have a WordPress site where you can find my data analytics projects, Python puzzles, and blog.    \n\n**https://advancedsqlpuzzles.com**  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmpetersgithub%2Fmicrosoft-sql-server-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmpetersgithub%2Fmicrosoft-sql-server-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmpetersgithub%2Fmicrosoft-sql-server-scripts/lists"}