{"id":18390427,"url":"https://github.com/turnipdo/pyodbc-data-import-for-ssms-alextheanalyst-ref-","last_synced_at":"2025-04-12T06:58:15.521Z","repository":{"id":240850634,"uuid":"803607886","full_name":"Turnipdo/PyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-","owner":"Turnipdo","description":"Using Python's pyodbc module to connect to Microsoft SQL Server and import data into SSMS.","archived":false,"fork":false,"pushed_at":"2024-06-10T07:52:45.000Z","size":3943,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:58:08.989Z","etag":null,"topics":["data-engineering","pyodbc","sql","ssms"],"latest_commit_sha":null,"homepage":"https://github.com/Turnipdo/Portfolio","language":"Jupyter Notebook","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/Turnipdo.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":"2024-05-21T03:50:23.000Z","updated_at":"2024-06-10T07:52:48.000Z","dependencies_parsed_at":"2024-06-10T09:32:27.012Z","dependency_job_id":"5cfee203-da2c-4e5e-b020-76e2eed71105","html_url":"https://github.com/Turnipdo/PyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-","commit_stats":null,"previous_names":["turnipdo/portfolio","turnipdo/pyodbc-data-import-for-ssms-alextheanalyst-ref-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FPyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FPyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FPyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FPyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turnipdo","download_url":"https://codeload.github.com/Turnipdo/PyODBC-Data-Import-for-SSMS-AlexTheAnalyst-Ref-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530578,"owners_count":21119595,"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":["data-engineering","pyodbc","sql","ssms"],"created_at":"2024-11-06T01:47:43.967Z","updated_at":"2025-04-12T06:58:15.487Z","avatar_url":"https://github.com/Turnipdo.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyODBC Data Import Into SSMS :atom:\nUsing Python's pyodbc module to connect to Microsoft SQL Server and import data into SSMS.\n\n## Additional info :warning:\nThis mini project offers an alternative method to importing data into SSMS compared to the process shown in \"Alex The Analyst's\" Data Analyst Portfolio Project | SQL Data Exploration | Project 1/4 video.\u003cbr\u003e\n[Link to his video](https://www.youtube.com/watch?v=qfyynHBFOsM)\n\n* Initially, I was unable to import the data into SSMS directly from Excel as a data source.\n\n* Instead, I utilized the pyodbc package in Python to create my tables, which allowed me to insert my data afterward.\n\n* You'll notice that I had to use the `fillna()` function in order to convert them to an acceptable `NULL` value for SSMS.\n\n* The benefit of doing this is that it avoids the need for us to use a `CAST()` or any type of `CONVERT()` to an int datatype because the tables created initially are of float datatypes.\n\n***Note***: *While I fully agree that I could have simply imported a flat file source in SSMS, I opted to explore something different, hence my use of pyodbc as an alternative.* :trollface:\n\n## Requirements :basecamp:\n* `SQL Server`\n* `SSMS`\n* `ODBC Driver For SQL Server`\n* `VSCode`\n* `PyODBC module`\n* `pandas`\n* `numpy`\n\n## Instructions :page_with_curl:\n* Configure SQL Server and ensure you have an ODBC Driver setup already.\n* pip install the `pyodbc`, `pandas`, `numpy` module in VSCode's terminal.\n* Use the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnipdo%2Fpyodbc-data-import-for-ssms-alextheanalyst-ref-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturnipdo%2Fpyodbc-data-import-for-ssms-alextheanalyst-ref-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnipdo%2Fpyodbc-data-import-for-ssms-alextheanalyst-ref-/lists"}