{"id":15002387,"url":"https://github.com/michaelcurrin/sql-server-docker-test","last_synced_at":"2026-01-27T09:18:05.798Z","repository":{"id":256198987,"uuid":"854580028","full_name":"MichaelCurrin/sql-server-docker-test","owner":"MichaelCurrin","description":"Exploratory project to setup and connect to SQL Server DB using Docker","archived":false,"fork":false,"pushed_at":"2024-09-10T09:04:07.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T12:15:56.540Z","etag":null,"topics":["database","docker","sql","sql-server"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/MichaelCurrin.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":"2024-09-09T12:33:13.000Z","updated_at":"2024-09-10T09:04:23.000Z","dependencies_parsed_at":"2024-11-17T17:41:54.749Z","dependency_job_id":"d694556d-8c29-4d70-b78d-bcce9f0fa3b8","html_url":"https://github.com/MichaelCurrin/sql-server-docker-test","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"766a142a1b103b757649fd9d8c3102e774a1948a"},"previous_names":["michaelcurrin/sql-server-docker-test"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fsql-server-docker-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fsql-server-docker-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fsql-server-docker-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fsql-server-docker-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelCurrin","download_url":"https://codeload.github.com/MichaelCurrin/sql-server-docker-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243146597,"owners_count":20243739,"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":["database","docker","sql","sql-server"],"created_at":"2024-09-24T18:49:57.736Z","updated_at":"2026-01-27T09:18:05.765Z","avatar_url":"https://github.com/MichaelCurrin.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL Server Docker test\n\u003e Exploratory project to setup and connect to SQL Server DB using Docker\n\n## Usage\n\n### Container management\n\nStart SQL Server container:\n\n```sh\n$ make run\n```\n\nCheck the logs:\n\n```sh\n$ make logs\n```\n\nStop and start:\n\n```sh\n$ make stop\n$ make start\n```\n\n### Shell access\n\nEnter interactive Bash shell:\n\n```sh\n$ make shell\n```\n\nEnter interactive SQL console:\n\n```sh\n$ make sql\n```\n\n### Run SQL in the database\n\n1. Start a Bash shell in the container as above.\n1. Run the shell script there:\n    ```sh\n    $ cd /app/scripts/\n    $ ./main.sh\n    ```\n\n## Connect with DB UI\n\nConnect to the DB in the container using desktops apps. Then you can run the `.sql` files in [scripts](/scripts/).\n\nCredentials:\n\n- Server: `localhost` (not needed to add port)\n- Password: `my(!)Password`\n\n### VS Code extension\n\nInstall https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql\n\nConnect using details above. Enable trust if there is an error.\n\nExecute query:\n\n1. Open a `.sql` file.\n1. Open the command prompt in VS Code.\n1. Select \"MS SQL: Connect\" or \"MS SQL: Execute Query\". Pick the `sa` user option.\n\n### DB tool\n\nDownload Azure Data Studio https://learn.microsoft.com/en-us/azure-data-studio/download-azure-data-studio\n\nUnder Connections, create server using details above. Set Encrypt as Optional.\n\n\n## Links\n\n### Docker image\n\nhttps://hub.docker.com/r/microsoft/mssql-server\n\n### DB UI tools\n\nSee [DB client cheatsheet](https://michaelcurrin.github.io/dev-resources/resources/tools/db-client.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Fsql-server-docker-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcurrin%2Fsql-server-docker-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Fsql-server-docker-test/lists"}