{"id":15002961,"url":"https://github.com/brianlesko/ms-sql-connect","last_synced_at":"2026-03-16T07:04:28.458Z","repository":{"id":217405491,"uuid":"743027873","full_name":"BrianLesko/MS-SQL-connect","owner":"BrianLesko","description":"Connect to a Microsoft SQL Server or a MySQL server - written purely in Python","archived":false,"fork":false,"pushed_at":"2024-01-21T19:09:50.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T13:56:35.867Z","etag":null,"topics":["connection","data-science","database","mssql","mssql-database","mysql","mysql-database","python","simple","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BrianLesko.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-14T04:53:41.000Z","updated_at":"2024-01-16T00:44:25.000Z","dependencies_parsed_at":"2024-01-21T20:54:11.093Z","dependency_job_id":"5c263d72-497f-401f-83ec-d6ce5efc1c29","html_url":"https://github.com/BrianLesko/MS-SQL-connect","commit_stats":null,"previous_names":["brianlesko/ms-sql-connect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2FMS-SQL-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2FMS-SQL-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2FMS-SQL-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2FMS-SQL-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianLesko","download_url":"https://codeload.github.com/BrianLesko/MS-SQL-connect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243153744,"owners_count":20244811,"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":["connection","data-science","database","mssql","mssql-database","mysql","mysql-database","python","simple","sql"],"created_at":"2024-09-24T18:54:23.272Z","updated_at":"2025-12-26T07:19:32.753Z","avatar_url":"https://github.com/BrianLesko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft SQL Connection\nThis code implements connection between a SQL server and a python script\n\n\u0026nbsp;\n\n## Dependencies\n\nThis code uses the following libraries:\n- `pyodbc`: For handling the communication between the MS SQL server and the python script\n\nThis code relies on the correct setup of SQL Server\n- `mysql`: for my-sql-connect.py\n- `microsoft sql`: for ms-sql-connect-odbc and -pymssql\n\nThe code also relies on a login being set up for the sql server, the steps to create a login differ between each server type\n\n\u0026nbsp;\n## Repository Structure\n```\nrepository/\n├── docs/\n│   └── content.png\n├── ms-sql-connect-odbc.py # Using the pyodbc library, connect to a MS SQL database\n├── ms-sql-connect-pymssql.py # Using the pymssql library, connect to a MS SQL server, issues during testing\n├── my-sql-connect.py # Connect to a mysql server\n├── requirements.txt # the python packages needed to run locally\n└── .gitignore # includes the file names contained in the author's directory not pushed to github\n```\n\n\u0026nbsp;\n\n## Topics \n```\nPython | SQL | Communication | Databases\nSelf taught coding | Mechanical engineer | Robotics engineer \nBrian Lesko | Brian Joseph Lesko\n```\n\u0026nbsp;\n\n\u003chr\u003e\n\n\u0026nbsp;\n\n\u003cdiv align=\"center\"\u003e\n\n\n\n╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮        ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮\n┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃        ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃\n┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃        ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃\n┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃        ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃\n┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃        ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃\n╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯        ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯\n  \n\n\n\u0026nbsp;\n\n\n\u003ca href=\"https://twitter.com/BrianJosephLeko\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/f7be693250033b9d28c2224c9c1042bb6859bfe9/.socials/svg-white/x-logo-white.svg\" width=\"30\" alt=\"X Logo\"\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003ca href=\"https://github.com/BrianLesko\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/f7be693250033b9d28c2224c9c1042bb6859bfe9/.socials/svg-white/github-mark-white.svg\" width=\"30\" alt=\"GitHub\"\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003ca href=\"https://www.linkedin.com/in/brianlesko/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/f7be693250033b9d28c2224c9c1042bb6859bfe9/.socials/svg-white/linkedin-icon-white.svg\" width=\"30\" alt=\"LinkedIn\"\u003e\u003c/a\u003e\n\nfollow all of these for pizza :)\n\n\u003c/div\u003e\n\n\n\u0026nbsp;\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlesko%2Fms-sql-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianlesko%2Fms-sql-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlesko%2Fms-sql-connect/lists"}