Visual Studio Code SQL Server (mssql) Extension - Error

Paul Wright 20 Reputation points
2025-08-07T14:27:46.46+00:00

In Visual Studio Code (Version 1.102.3) I have installed the extension SQL Server (mssql), but I am unable to use it. I am getting this error: There is no data provider registered that can provide view data.

User's image

Clicking on the add connection button does nothing. This is the output:

User's image

I have tried uninstalling and installing the extension a few times, but the same error happens. I have auto update on. It's completely unusable, as I can't connect to any database or run any queries.

Developer technologies | Visual Studio | Extensions
{count} votes

Accepted answer
  1. Varsha Dundigalla(INFOSYS LIMITED) 795 Reputation points Microsoft External Staff
    2025-08-08T08:21:27.44+00:00

    Thank you for sharing details. Please find the steps below.

    Fix Guide for SQL Server Extension “No Data Provider” Error

    Step-by-Step Fix

    1. 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
    2. 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
    3. Update Requirements
    4. Nuclear Reinstall
      • Uninstall mssql extension
      • Close VS Code
      • Delete folder:
         %USERPROFILE%\.vscode\extensions\ms-mssql.mssql-*
      
      • Reinstall from Marketplace
      • Immediately redo Step 1
    5. Admin Mode + Antivirus Bypass
      • Run VS Code as administrator
      • Temporarily disable antivirus/firewall
      • Add exclusions for:
         %USERPROFILE%\.vscode\extensions %USERPROFILE%\.dotnet
      
    6. Roll Back to Stable Version
      • In Extensions panel → Click gear icon next to mssqlInstall Another Version
      • Select: 1.23.0
      • Right-click extension → Disable Auto Updates
    7. 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
      Let us know if the issue persists after following these steps. We’ll be happy to assist further if needed.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.