{"id":18390432,"url":"https://github.com/turnipdo/ssms-sql-powerquerym-functions","last_synced_at":"2026-01-23T16:35:35.268Z","repository":{"id":242453949,"uuid":"809584387","full_name":"Turnipdo/SSMS-SQL-PowerQueryM-Functions","owner":"Turnipdo","description":"Using Power Query M to extract values from Excel workbooks for dynamic insertion into SQL code.","archived":false,"fork":false,"pushed_at":"2024-06-10T08:06:24.000Z","size":13958,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T08:57:06.662Z","etag":null,"topics":["data-analytics","microsoft-excel","powerquerym","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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-06-03T03:51:17.000Z","updated_at":"2024-06-10T08:06:27.000Z","dependencies_parsed_at":"2024-06-10T09:58:29.693Z","dependency_job_id":null,"html_url":"https://github.com/Turnipdo/SSMS-SQL-PowerQueryM-Functions","commit_stats":null,"previous_names":["turnipdo/ssms-sql-powerquerym-functions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Turnipdo/SSMS-SQL-PowerQueryM-Functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FSSMS-SQL-PowerQueryM-Functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FSSMS-SQL-PowerQueryM-Functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FSSMS-SQL-PowerQueryM-Functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FSSMS-SQL-PowerQueryM-Functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turnipdo","download_url":"https://codeload.github.com/Turnipdo/SSMS-SQL-PowerQueryM-Functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turnipdo%2FSSMS-SQL-PowerQueryM-Functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-analytics","microsoft-excel","powerquerym","sql"],"created_at":"2024-11-06T01:47:45.246Z","updated_at":"2026-01-23T16:35:35.227Z","avatar_url":"https://github.com/Turnipdo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSMS-SQL-PowerQueryM-Functions :atom:\nUsing Power Query M to extract values from Excel workbooks for dynamic insertion into SQL code.\n\n## Requirements :basecamp:\n* `SSMS`\n* `ODBC Driver For SQL Server`\n* `Microsoft Excel`\n\n## Instructions :page_with_curl:\n* Ensure you have all the requirements and everything is configured properly (especially SSMS and the ODBC Driver).\n* Open an Excel Workbook.\n* Name you're first sheet as Parameters (this is where we will be extracting the text value from).\n* Paste your SSMS server name wherever you'd like (ideally on the top left corner).\n* Have another cell ready below the server name for continents, and name the cells 'Server' and 'Continent', respectively.\n* Now go to the `Data Tab` :arrow_right: `Get Data` :arrow_right: `From Other Sources` :arrow_right: `Blank Query` :arrow_right: `Advanced Editor`.\n* Once you're in the Advanced Editor you will need to first input the fnGetParam Power Query M script I've attached, this code basically extracts the value from the named cells (make sure the it is named fnGetParam or else the function call will not work).\n* Create another blank query either by right-clicking in the [Queries] section and selecting New Query.\n* Paste the SQL code I've attached and change all the necessary customizable named components such as the ODBC Driver you're using and the database you're extracting from.\n* Voila, you can now close and load, and if it asks you for authentication, I usually select `Windows` :arrow_right: `Use Current Credentials`. \n\n## Video Sample :film_strip:\n\n[Watch the video](https://github.com/Turnipdo/SSMS-SQL-PowerQueryM-Functions/blob/main/fnGetParam.mp4)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnipdo%2Fssms-sql-powerquerym-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturnipdo%2Fssms-sql-powerquerym-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturnipdo%2Fssms-sql-powerquerym-functions/lists"}