{"id":18664333,"url":"https://github.com/dzsquared/sql-development-tools","last_synced_at":"2025-11-06T09:30:34.241Z","repository":{"id":95258147,"uuid":"320929677","full_name":"dzsquared/sql-development-tools","owner":"dzsquared","description":"Sample code and materials from SQL development session","archived":false,"fork":false,"pushed_at":"2021-01-30T00:57:24.000Z","size":7107,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-27T17:20:35.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TSQL","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/dzsquared.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":"Security/SalesLT.sql","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-12T21:41:21.000Z","updated_at":"2023-02-17T15:17:19.000Z","dependencies_parsed_at":"2023-03-13T16:52:37.731Z","dependency_job_id":null,"html_url":"https://github.com/dzsquared/sql-development-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fsql-development-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fsql-development-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fsql-development-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzsquared%2Fsql-development-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzsquared","download_url":"https://codeload.github.com/dzsquared/sql-development-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239491352,"owners_count":19647811,"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-07T08:23:07.307Z","updated_at":"2025-02-18T14:45:42.128Z","avatar_url":"https://github.com/dzsquared.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Materials Related to Tools for SQL Development\n- [Slide deck for SQL Saturday #1017](Presentation/SQLSaturday1017.pdf)\n- [Slide deck for C# SQL Server Conference](Presentation/CSharpCorner.pdf)\n\n**Documentation for SQL Database Projects in Azure Data Studio: [https://aka.ms/azuredatastudio-sqlprojects](https://aka.ms/azuredatastudio-sqlprojects)**\n\n## Getting Started\nFork this repository and clone to your workstation or jump right into remote application development with Codespaces from your fork.\n\n### In Azure Data Studio with Database Projects\nAfter cloning your fork to your local workstation, open `AdventureWorksLT.code-workspace` in Azure Data Studio from the SQL database projects extension.\n\n### In VS Code with .NET Core application\n- After cloning your fork to your local workstation, open the folder in VS Code and use the command `Remote Containers: Rebuild and Reopen in Container`, which creates the development containers and deploys the AdventureWorksLT dacpac to the SQL container.\n- After forking the repository, create a new Codespace from the repository, which creates the development containers and deploys the AdventureWorksLT dacpac to the SQL container - in GitHub.\n\n![Codespace](Presentation/codespace.png)\n\n## devcontainer Description\nThis definition creates two containers, one for C# (.NET Core) and one for Microsoft SQL.  VS Code will attach to the .NET Core container, and from within that container the Microsoft SQL container will be available on **`localhost`** port 1433. By default, the `sa` user password is `P@ssw0rd`. For more on the configuration of MS SQL, see the section [MS SQL Configuration](#MS-SQL-Configuration)\n\n\n## MS SQL Configuration\nA secondary container for MS SQL is defined in `devcontainer.json` with the Dockerfile and supporting scripts in the `mssql` folder.  This container is deployed from the latest developer edition of Microsoft SQL 2019.  The database(s) are made available directly in the Codespace/VS Code through the MSSQL extension with a connection labeled \"mssql-container\".  The default `sa` user password is set to `P@ssw0rd`. The default SQL port is mapped to port `1433` in `docker-compose.yml`.\n\n### Changing the sa password\nTo change the `sa` user password, change the value in `docker-compose.yml` and `devcontainer.json`.\n\n### Database deployment\nBy default, a blank user database is created titled \"ApplicationDB\".  To add additional database objects or data through T-SQL during Codespace configuration, edit the file `.devcontainer/mssql/setup.sql` or place additional `.sql` files in the `.devcontainer/mssql/` folder. *Large numbers of scripts may take a few minutes following container creation to complete, even when the SQL server is available the database(s) may not be available yet.*\n\nAlternatively, .dacpac files placed in the `./bin/Debug` folder will be published as databases in the container during Codespace configuration. [SqlPackage](https://docs.microsoft.com/sql/tools/sqlpackage) is used to deploy a database schema from a data-tier application file (dacpac), allowing you to bring your application's database structures into the dev container easily. *The publish process may take a few minutes following container creation to complete, even when the server is available the database(s) may not be available yet.*\n\n\n## License\n\nCopyright (c) Microsoft Corporation. All rights reserved.\n\nLicensed under the MIT License. See [LICENSE](LICENSE)\n\n\nLicenses for [SqlPackage](https://docs.microsoft.com/sql/tools/sqlpackage-download), [SQLCMD](https://docs.microsoft.com/sql/linux/sql-server-linux-setup-tools), and [SQL Server Developer Edition](https://go.microsoft.com/fwlink/?linkid=857698).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzsquared%2Fsql-development-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzsquared%2Fsql-development-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzsquared%2Fsql-development-tools/lists"}