microsoft / microsoft/vscode-mssql

[Bug]: no connection to server

Open
#22,939 0 comments 0 reactions 0 assignees View on GitHub
Bug Triage: Needed User-filed
Dominant language
TypeScript
Stars
1.9k
Forks
610
Avg merge
2d 3h
Merged PRs (30d)
97

Description

### Description

Error message "The SQLToolsService service has crashed. Details: The service process was unexpectedly closed" upon startup of VS Code. Unable to connect to MSSQL.

### Steps to Reproduce

1. Start VS Code.

Alt:

1. Start VS Code
2. Attempt to connect to MSSQL

### Affected Area

- [ ] Connection dialog (SQL Server | Azure browse/Fabric browse)
- [ ] Query editor
- [ ] Query results panel
- [ ] Object Explorer
- [ ] GitHub Copilot integration
- [ ] Preview/Edit data
- [ ] Table Designer
- [ ] Schema Designer
- [ ] Schema Compare
- [ ] Local SQL Server Container provisioning
- [ ] SQL database in Fabric provisioning
- [ ] DACPAC/BACPAC export/import
- [ ] SQL Database projects
- [ ] Query Plan Visualizer
- [ ] Other (please describe below)

### If you selected "Other", please describe the affected area

_No response_

### Environment Information

Latest versions of VS Code, SQL Server, and SQL Database Projects. Microsoft OS. Connecting to SQL Server Management Studio.

### Confirmation

- [x] I have searched existing issues and couldn't find a match
- [ ] I want to work on this issue

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure by starting VS Code and attempting an MSSQL connection, then trace the SQLToolsService crash reported in the error message. Done means the service remains running after startup and an MSSQL connection succeeds on the stated current versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.