Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/ms-sql-connect
Connect to a Microsoft SQL Server or a MySQL server - written purely in Python
https://github.com/brianlesko/ms-sql-connect
connection data-science database mssql mssql-database mysql mysql-database python simple sql
Last synced: 27 days ago
JSON representation
Connect to a Microsoft SQL Server or a MySQL server - written purely in Python
- Host: GitHub
- URL: https://github.com/brianlesko/ms-sql-connect
- Owner: BrianLesko
- License: mit
- Created: 2024-01-14T04:53:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-21T19:09:50.000Z (10 months ago)
- Last Synced: 2024-10-12T07:21:09.766Z (27 days ago)
- Topics: connection, data-science, database, mssql, mssql-database, mysql, mysql-database, python, simple, sql
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Microsoft SQL Connection
This code implements connection between a SQL server and a python script
## Dependencies
This code uses the following libraries:
- `pyodbc`: For handling the communication between the MS SQL server and the python scriptThis code relies on the correct setup of SQL Server
- `mysql`: for my-sql-connect.py
- `microsoft sql`: for ms-sql-connect-odbc and -pymssqlThe code also relies on a login being set up for the sql server, the steps to create a login differ between each server type
## Repository Structure
```
repository/
├── docs/
│ └── content.png
├── ms-sql-connect-odbc.py # Using the pyodbc library, connect to a MS SQL database
├── ms-sql-connect-pymssql.py # Using the pymssql library, connect to a MS SQL server, issues during testing
├── my-sql-connect.py # Connect to a mysql server
├── requirements.txt # the python packages needed to run locally
└── .gitignore # includes the file names contained in the author's directory not pushed to github
```
## Topics
```
Python | SQL | Communication | Databases
Self taught coding | Mechanical engineer | Robotics engineer
Brian Lesko | Brian Joseph Lesko
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these for pizza :)