Thank you for sharing details. Please find the steps below.
Fix Guide for SQL Server Extension “No Data Provider” Error
Step-by-Step Fix
- Force SQL Tools Service Install
- Press
Ctrl+Shift+P
in VS Code - Type: Install SQL Tools Service
- Select: mssql
- Wait 2–3 minutes for silent download
- Try clicking “Add Connection” again
- Press
- Verify Service Exists
- Open File Explorer
- Paste:
%USERPROFILE%\.vscode\extensions\ms-mssql.mssql-*\sqltoolsservice
- Confirm these files exist:
Microsoft.SqlTools.ServiceLayer.exe Microsoft.SqlTools.ServiceLayer.pdb
- If missing → go to Step 4
- Update Requirements
- Update VS Code: Help > Check for Updates
- Install .NET 6.0+ Runtime: https://dotnet.microsoft.com/download
- Ensure at least 500MB free disk space
- Nuclear Reinstall
- Uninstall
mssql
extension - Close VS Code
- Delete folder:
%USERPROFILE%\.vscode\extensions\ms-mssql.mssql-*
- Reinstall from Marketplace
- Immediately redo Step 1
- Uninstall
- Admin Mode + Antivirus Bypass
- Run VS Code as administrator
- Temporarily disable antivirus/firewall
- Add exclusions for:
%USERPROFILE%\.vscode\extensions %USERPROFILE%\.dotnet
- Roll Back to Stable Version
- In Extensions panel → Click gear icon next to
mssql
→Install Another Version
- Select:
1.23.0
- Right-click extension →
Disable Auto Updates
- In Extensions panel → Click gear icon next to
- Additional Checks
- Install latest Visual C++ Redistributable (for Windows 7/8)
- Make sure SQL Server instance is running
- Check port
1433
is open (for remote connections) - Use full connection string in “Add Connection” dialog