{"id":28051543,"url":"https://github.com/devizer/sqlserver-version-management","last_synced_at":"2026-04-27T11:31:44.103Z","repository":{"id":292144450,"uuid":"979944749","full_name":"devizer/SqlServer-Version-Management","owner":"devizer","description":"SQL Server Setup and Management including Developer, Express, and LocalDB editions. The intended use of this project is for Continuous Integration (CI) scenarios, where:  SQL Server or LocalDB needs to be installed without user interaction; SQL Server or LocalDB installation doesn't need to persist across multiple CI runs.","archived":false,"fork":false,"pushed_at":"2025-05-08T10:43:23.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T01:55:08.640Z","etag":null,"topics":["2005","2008","2012","2014","2016","2017","2019","2022","automation","ci","configuration","powershell","setup","sql","sql-server","test-automation"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/devizer.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,"zenodo":null}},"created_at":"2025-05-08T10:11:46.000Z","updated_at":"2025-05-08T10:43:26.000Z","dependencies_parsed_at":"2025-05-08T11:32:01.552Z","dependency_job_id":"b75de595-f5c8-4476-8bce-43301f9467b5","html_url":"https://github.com/devizer/SqlServer-Version-Management","commit_stats":null,"previous_names":["devizer/sqlserver-version-management"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devizer%2FSqlServer-Version-Management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devizer%2FSqlServer-Version-Management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devizer%2FSqlServer-Version-Management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devizer%2FSqlServer-Version-Management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devizer","download_url":"https://codeload.github.com/devizer/SqlServer-Version-Management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253660837,"owners_count":21943823,"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":["2005","2008","2012","2014","2016","2017","2019","2022","automation","ci","configuration","powershell","setup","sql","sql-server","test-automation"],"created_at":"2025-05-12T01:55:11.751Z","updated_at":"2026-04-27T11:31:44.097Z","avatar_url":"https://github.com/devizer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SqlServer-Version-Management Powershell Module\nSQL Server Setup and Management including Developer, Express, and LocalDB editions.\nThe intended use of this project is for Continuous Integration (CI) scenarios, where:\n\n - SQL Server or LocalDB needs to be installed without user interaction.\n - SQL Server or LocalDB installation doesn't need to persist across multiple CI runs.\n\nSQL Server Setup defaults:\n\n - Features are SQL Engine and full text search,\n - Built-in Administrators (or localized name) are SQL Server Administrators for SSPI,\n - TCP/IP and Named Pipe protocols are on,\n - sa password is 'Meaga$tr0ng'.\n\n## Supported SQL Server version arguments:\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2025 Developer_ 🡒 17.0.1000.7 Enterprise Developer Edition (64-bit) RTM\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2025 Core_ 🡒 17.0.1000.7 Express Edition (64-bit) RTM\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2025 LocalDB_ 🡒 17.0.1000.7 LocalDB Express Edition (64-bit) RTM\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 Developer Update_ 🡒 16.0.4135.4 RTM CU14 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 Developer_ 🡒 16.0.1000.6 RTM Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 Advanced Update_ 🡒 16.0.4135.4 RTM CU14 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 Advanced_ 🡒 16.0.1000.6 RTM Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 Core Update_ 🡒 16.0.4135.4 RTM CU14 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 Core_ 🡒 16.0.1000.6 RTM Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2022 LocalDB_ 🡒 16.0.1000.6 RTM LocalDB Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 Developer Update_ 🡒 15.0.4385.2 RTM CU28 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 Developer_ 🡒 15.0.2000.5 RTM Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 Advanced Update_ 🡒 15.0.4385.2 RTM CU28 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 Advanced_ 🡒 15.0.2000.5 RTM Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 Core Update_ 🡒 15.0.4385.2 RTM CU28 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 Core_ 🡒 15.0.2000.5 RTM Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2019 LocalDB_ 🡒 15.0.2000.5 RTM LocalDB Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 Developer Update_ 🡒 14.0.3456.2 RTM CU31 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 Developer_ 🡒 14.0.1000.169 RTM Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 Advanced Update_ 🡒 14.0.3456.2 RTM CU31 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 Advanced_ 🡒 14.0.1000.169 RTM Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 Core Update_ 🡒 14.0.3456.2 RTM CU31 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 Core_ 🡒 14.0.1000.169 RTM Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2017 LocalDB_ 🡒 14.0.1000.169 RTM LocalDB Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 Developer Update_ 🡒 13.0.6441.1 SP3 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 Developer_ 🡒 13.0.6404.1 SP3 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 Advanced Update_ 🡒 13.0.6441.1 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 Advanced_ 🡒 13.0.6404.1 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 Core Update_ 🡒 13.0.6441.1 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 Core_ 🡒 13.0.6404.1 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2016 LocalDB_ 🡒 13.0.6300.2 SP3 LocalDB Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x64 Developer_ 🡒 12.0.6024.0 SP3 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x64 Advanced_ 🡒 12.0.6024.0 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x64 Core_ 🡒 12.0.6024.0 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x64 LocalDB_ 🡒 12.0.6024.0 SP3 LocalDB Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x86 Developer_ 🡒 12.0.6024.0 SP3 Developer Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x86 Advanced_ 🡒 12.0.6024.0 SP3 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2014-x86 Core_ 🡒 12.0.6024.0 SP3 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x64 Developer_ 🡒 11.0.7001.0 SP4 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x64 Advanced_ 🡒 11.0.7001.0 SP4 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x64 Core_ 🡒 11.0.7001.0 SP4 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x64 LocalDB_ 🡒 11.0.7001.0 SP4 LocalDB Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x86 Developer_ 🡒 11.0.7001.0 SP4 Developer Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x86 Advanced_ 🡒 11.0.7001.0 SP4 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2012-x86 Core_ 🡒 11.0.7001.0 SP4 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x64 Developer_ 🡒 10.50.6000.34 SP3 Developer Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x64 Advanced Update_ 🡒 10.50.6000.34 SP3 Express Edition with Advanced Services (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x64 Advanced_ 🡒 10.50.4000.0 SP2 Express Edition with Advanced Services (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x64 Core Update_ 🡒 10.50.6000.34 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x64 Core_ 🡒 10.50.4000.0 SP2 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x86 Developer_ 🡒 10.50.6000.34 SP3 Developer Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x86 Advanced Update_ 🡒 10.50.6000.34 SP3 Express Edition with Advanced Services\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x86 Advanced_ 🡒 10.50.4000.0 SP2 Express Edition with Advanced Services\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x86 Core Update_ 🡒 10.50.6000.34 SP3 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008R2-x86 Core_ 🡒 10.50.4000.0 SP2 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x64 Advanced Update_ 🡒 10.0.6000.29 SP4 Express Edition with Advanced Services (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x64 Advanced_ 🡒 10.0.1600.22 RTM Express Edition with Advanced Services (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x64 Core Update_ 🡒 10.0.6000.29 SP4 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x64 Core_ 🡒 10.0.5500.0 SP3 Express Edition (64-bit)\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x86 Advanced Update_ 🡒 10.0.6000.29 SP4 Express Edition with Advanced Services\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x86 Advanced_ 🡒 10.0.1600.22 RTM Express Edition with Advanced Services\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x86 Core Update_ 🡒 10.0.6000.29 SP4 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2008-x86 Core_ 🡒 10.0.5500.0 SP3 Express Edition\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2005-x86 Advanced Update_ 🡒 9.00.5000.00 SP4 Express Edition with Advanced Services\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2005-x86 Advanced_ 🡒 9.00.3042.00 SP2 Express Edition with Advanced Services\u003cbr/\u003e\n\u0026#x2714;\u0026nbsp;\u0026nbsp; _2005-x86 Core_ 🡒 9.00.5000.00 SP4 Express Edition\u003cbr/\u003e\n\n\n## Setup-SqlServers function\n\u0026#x1F31F; Install SQL Server 2022 Developer Edition with Cumulative Update as default instance (local) with UTF8 Collation:\n```powershell\nSetup-SqlServers \"2022 Developer Updated: MSSQLSERVER\" `\n                 \"Collation=Latin1_General_100_CI_AS_SC_UTF8\"\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Install four SQL Server Instances and their ```tempdb``` on system drive, and place the data and log folders on the secondary SSD:\n```powershell\n$sqlServers=@\"\n2022 Developer Updated: DEVELOPER2022,\n2019 Developer Updated: DEVELOPER2019,\n2017 Developer Updated: DEVELOPER2017,\n2016 Developer Updated: DEVELOPER2016\n\"@;\nSetup-SqlServers $sqlServers `\n                 \"/SQLUSERDBDIR=D:\\SQL\\{InstanceName}-DATA\" `\n                 \"/SQLUSERDBLOGDIR=D:\\SQL\\{InstanceName}-LOGS\"\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Install SQL Server 2019 Developer Edition RTM as DEVELOPER2019 instance:\n```powershell\nSetup-SqlServers \"2019 Developer: DEVELOPER2019\"\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Install SQL Server 2016 Developer Edition SP3 as DEVELOPER2016 instance tuned for performance:\n```powershell\n$ENV:PS1_TROUBLE_SHOOT = \"On\"\n$ENV:SQLSERVERS_MEDIA_FOLDER = \"D:\\SQL-SETUP\\Media\"\n$ENV:SQLSERVERS_SETUP_FOLDER = \"C:\\SQL-SETUP\\Installer\"\nSetup-SqlServers \"2016 Developer: DEVELOPER2016\" `\n                 \"Features=SQLENGINE,FullText\" `\n                 \"Collation=SQL_Latin1_General_CP1_CI_AS\" `\n                 \"Startup=Automatic\" `\n                 \"InstallTo=D:\\SQL\" `\n                 \"Password=Zuper`$tr0ng\" \n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; List Installed SQL Server Intances\n```powershell\nFind-Local-SqlServers | \n     Format-Table -AutoSize | \n     Out-String -Width 1234 | \n     Out-Host\n```\n```\nInstance               InstallerVersion Service\n--------               ---------------- -------\n(local)                16.0.1000.6      MSSQLSERVER\n(local)\\ADV_2005_X86   9.00.5000.00     MSSQL$ADV_2005_X86\n(local)\\ADV_2008R2_X64 10.50.6000.34    MSSQL$ADV_2008R2_X64\n(local)\\ADV_2008_X86   10.0.1600.22     MSSQL$ADV_2008_X86\n(local)\\DEV2022UTF8    16.0.1000.6      MSSQL$DEV2022UTF8\n(local)\\DEV_2008R2_X64 10.50.6000.34    MSSQL$DEV_2008R2_X64\n(local)\\DEV_2008_X64   10.0.6000.29     MSSQL$DEV_2008_X64\n(local)\\DEV_2012_X64   11.0.7001.0      MSSQL$DEV_2012_X64\n(local)\\DEV_2014_X64   12.0.6024.0      MSSQL$DEV_2014_X64\n(local)\\DEV_2016       13.0.6441.1      MSSQL$DEV_2016\n(local)\\DEV_2017       14.0.1000.169    MSSQL$DEV_2017\n(local)\\DEV_2019       15.0.2000.5      MSSQL$DEV_2019\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; List Installed SQL Server Services, wait up to 30 seconds for each SQL Server health check to pass, and populate Version column\n```powershell\nFind-Local-SqlServers | \n     Populate-Local-SqlServer-Version -Timeout 30 |\n     Format-Table -AutoSize | \n     Out-String -Width 1234 | \n     Out-Host\n```\n```\nInstance               InstallerVersion Service              Version\n--------               ---------------- -------              -------                                     \n(local)                16.0.1000.6      MSSQLSERVER          16.0.4145.4 Developer Edition (64-bit) RTM CU15\n(local)\\ADV_2005_X86   9.00.5000.00     MSSQL$ADV_2005_X86   9.00.5000.00 Express Edition with Advanced SP4\n(local)\\ADV_2008R2_X64 10.50.6000.34    MSSQL$ADV_2008R2_X64 10.50.6000.34 Express Edition with Advanced SP3\n(local)\\ADV_2008_X86   10.0.1600.22     MSSQL$ADV_2008_X86   10.0.6000.29 Express Edition with Advanced SP4\n(local)\\DEV2022UTF8    16.0.1000.6      MSSQL$DEV2022UTF8    16.0.4145.4 Developer Edition (64-bit) RTM CU15\n(local)\\DEV_2008R2_X64 10.50.6000.34    MSSQL$DEV_2008R2_X64 10.50.6000.34 Developer Edition (64-bit) SP3\n(local)\\DEV_2008_X64   10.0.6000.29     MSSQL$DEV_2008_X64   10.0.6000.29 Developer Edition (64-bit) SP4\n(local)\\DEV_2012_X64   11.0.7001.0      MSSQL$DEV_2012_X64   11.0.7001.0 Developer Edition (64-bit) SP4\n(local)\\DEV_2014_X64   12.0.6024.0      MSSQL$DEV_2014_X64   12.0.6024.0 Developer Edition (64-bit) SP3\n(local)\\DEV_2016       13.0.6441.1      MSSQL$DEV_2016       13.0.6441.1 Developer Edition (64-bit) SP3\n(local)\\DEV_2017       14.0.1000.169    MSSQL$DEV_2017       14.0.3456.2 Developer Edition (64-bit) RTM CU31\n(local)\\DEV_2019       15.0.2000.5      MSSQL$DEV_2019       15.0.4385.2 Developer Edition (64-bit) RTM CU28\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; SQL Server 2025 and LocalDB 2025 are also supported\n```powershell\n@(Find-Local-SqlServers) + @(Find-LocalDb-SqlServers) | \n     Populate-Local-SqlServer-Version | \n     Select-Object -Property Instance, Version |\n     Format-Table -AutoSize | \n     Out-String -Width 1234 | \n     Out-Host\n```\n```\nInstance               Version\n--------               -------\n(local)                17.0.1000.7 Enterprise Developer Edition (64-bit) RTM\n(LocalDB)\\MSSQLLocalDB 17.0.1000.7 LocalDB Express Edition (64-bit) RTM\n```\n\u003cbr/\u003e\n\n\n\u0026#x1F31F; List Installed SQL Server Services\n```powershell\nFind-Local-SqlServers | \n   % { $_.Service } | \n   % { Get-Service -Name $_ } | \n   ft -AutoSize |\n   Out-Host\n```\n```\nStatus  Name                 DisplayName\n------  ----                 -----------\nRunning MSSQL$ADV_2005_X86   SQL Server (ADV_2005_X86)\nRunning MSSQL$ADV_2008_X86   SQL Server (ADV_2008_X86)\nRunning MSSQL$ADV_2008R2_X64 SQL Server (ADV_2008R2_X64)\nRunning MSSQL$DEV_2008_X64   SQL Server (DEV_2008_X64)\nRunning MSSQL$DEV_2008R2_X64 SQL Server (DEV_2008R2_X64)\nRunning MSSQL$DEV_2012_X64   SQL Server (DEV_2012_X64)\nRunning MSSQL$DEV_2014_X64   SQL Server (DEV_2014_X64)\nRunning MSSQL$DEV_2016       SQL Server (DEV_2016)\nRunning MSSQL$DEV_2017       SQL Server (DEV_2017)\nRunning MSSQL$DEV_2019       SQL Server (DEV_2019)\nRunning MSSQL$DEV2022UTF8    SQL Server (DEV2022UTF8)\nRunning MSSQLSERVER          SQL Server (MSSQLSERVER)\n\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Wait up to 30 seconds for the SQL Server health check to pass, and return its version\n```powershell\nQuery-SqlServer-Version -Title \"Default MS SQL SERVER\" -Instance \"(local)\" -Timeout 30\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Wait up to 30 seconds for the SQL Server health check to pass, and return its version (on Linux)\n```powershell\nQuery-SqlServer-Version -Title \"SQL Server\" `\n      -ConnectionString \"Data Source=localhost,1433;User ID=sa;Password=passw0rd!;Encrypt=False;\" `\n      -Timeout 30\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Start SQL Server Instances that are currently stopped\n```powershell\nFind-Local-SqlServers | \n   % { $_.Service } | \n   % { Get-Service -Name $_ } | \n   ? { $_.Status -ne \"Running\" } |\n   % { Write-Host \"Starting $($_.Name)\"; Start-Service \"$($_.Name)\" }\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Stop SQL Server Instances that are currently running\n```powershell\nFind-Local-SqlServers | \n   % { $_.Service } | \n   % { Get-Service -Name $_ } | \n   ? { $_.Status -ne \"Stopped\" } |\n   % { Write-Host \"Stopping $($_.Name)\"; Stop-Service \"$($_.Name)\" -Force }\n```\n\u003cbr/\u003e\n\n## SQL Server LocalDB functions\n\u0026#x1F31F; Install all the versions of SQL Server LocalDB:\n```powershell\nSetup-SqlServers \"\n  2025 LocalDB,\n  2022 LocalDB,\n  2019 LocalDB,\n  2017 LocalDB,\n  2016 LocalDB,\n  2014 LocalDB,\n  2012 LocalDB\n\"\n```\n\u003cbr/\u003e\n\n\n\u0026#x1F31F; List Installed SQL Server LocalDB Versions:\n```powershell\nFind-LocalDb-Versions |\n     ft -Property ShortVersion, InstallerVersion -AutoSize |\n     Out-String -Width 1234 |\n     Out-Host\n```\n```\nShortVersion InstallerVersion\n------------ ----------------\n16.0         16.0.4175.1\n15.0         15.0.4420.2\n14.0         14.0.3456.2\n13.0         13.3.6441.1\n12.0         12.3.6024.0\n11.0         11.4.7001.0\n```\n\u003cbr/\u003e\n\n\n\n\u0026#x1F31F; List SQL Server LocalDB Instances and their version:\n```powershell\nFind-LocalDb-SqlServers | Populate-Local-SqlServer-Version |\n     ft -AutoSize |\n     Out-String -Width 1234 |\n     Out-Host\n```\n```\nInstance                Version\n--------                -------\n(LocalDB)\\LocalDB-v11.0 11.0.7001.0 LocalDB Express Edition (64-bit) SP4\n(LocalDB)\\LocalDB-v12.0 12.0.6024.0 LocalDB Express Edition (64-bit) SP3\n(LocalDB)\\LocalDB-v13.0 13.0.6300.2 LocalDB Express Edition (64-bit) SP3\n(LocalDB)\\LocalDB-v14.0 14.0.3456.2 LocalDB Express Edition (64-bit) RTM CU31\n(LocalDB)\\LocalDB-v15.0 15.0.4420.2 LocalDB Express Edition (64-bit) RTM CU31\n(LocalDB)\\LocalDB-v16.0 16.0.4175.1 LocalDB Express Edition (64-bit) RTM CU17\n(LocalDB)\\MSSQLLocalDB  16.0.4175.1 LocalDB Express Edition (64-bit) RTM CU17\n(LocalDB)\\v11.0         11.0.7001.0 LocalDB Express Edition (64-bit) SP4\n```\n\u003cbr/\u003e\n\n\n\n\u0026#x1F31F; Create SQL Server LocalDB Instance per version using pattern ```LocalDB-v{Version}```:\n```powershell\nforeach($localDb in Find-LocalDb-Versions) {\n  $instance = \"LocalDB-v$($localDb.ShortVersion)\"\n  Write-Host \"Creating Instance $instance version $($localDb.ShortVersion)\"\n  $isCreated = Create-LocalDB-Instance `\n    -InstanceName $instance `\n    -OptionalVersion $localDb.ShortVersion\n}\n```\n\u003cbr/\u003e\n\n\n\u0026#x1F31F; Uninstall any pre-installed LocalDB version:\n```powershell\nUninstall-LocalDB-List \"*\"\n```\n\u003cbr/\u003e\n\n\u0026#x1F31F; Uninstall LocalDB 2012 and 2014 if they are installed:\n```powershell\nUninstall-LocalDB-List \"2012\", \"2014\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevizer%2Fsqlserver-version-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevizer%2Fsqlserver-version-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevizer%2Fsqlserver-version-management/lists"}