Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/extensions.json

This file was deleted.

86 changes: 42 additions & 44 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,42 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

// To debug the extension:
// 1. please install the "Azure Data Studio Debug" extension into VSCode
// 2. Ensure azuredatastudio is added to your path:
// - open Azure Data Studio
// - run the command "Install 'azuredatastudio' command in PATH"
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "sqlopsExtensionHost",
"request": "launch",
"runtimeExecutable": "azuredatastudio",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: debug",
"timeout": 30000
},
{
"name": "Extension Tests",
"type": "sqlopsExtensionHost",
"request": "launch",
"runtimeExecutable": "azuredatastudio",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/dist/test/suite"
],
"outFiles": [
"${workspaceFolder}/dist/test/**/*.js"
],
"preLaunchTask": "npm: debug",
"timeout": 30000
}
]
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Run SQL Data Inspector",
"type": "extensionHost",
"request": "launch",
"sourceMaps": true,
"pauseForSourceMap": true,
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"resolveSourceMapLocations": [
"${workspaceFolder}/dist/**/*.js",
"${workspaceFolder}/dist/**/*.js.map"
],
"preLaunchTask": "build SQL Data Inspector for debug"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"sourceMaps": true,
"pauseForSourceMap": true,
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/dist/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"resolveSourceMapLocations": [
"${workspaceFolder}/dist/**/*.js",
"${workspaceFolder}/dist/**/*.js.map"
],
"preLaunchTask": "npm: compile"
}
]
}
50 changes: 30 additions & 20 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "debug",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build SQL Data Inspector for debug",
"type": "shell",
"command": "npm run debug:build",
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "watch SQL Data Inspector",
"type": "shell",
"command": "npm run debug",
"isBackground": true,
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"panel": "dedicated"
}
}
]
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to the "SQL Data Inspector" extension will be documented in

---

## July 2026 Release (version 0.9.0)

### New Features

* Migrated connection management and query execution from Azure Data Studio to the SQL Server (mssql) extension for Visual Studio Code.
* Microsoft SQL Server is the active database provider. The MySQL and PostgreSQL repository implementations remain available for future integrations.
* Added SQL command and result tracing to the **SQL Data Inspector** output channel.
* Added `sqlDataInspector.tracing.sqlCommands` to disable SQL tracing when query text or returned data must not be logged.

---

## August 2025 Release (version 0.8.2)

### New Features
Expand Down
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# SQL Data Inspector
# SQL Data Inspector (MSSQL)

![GitHub All Releases](https://img.shields.io/github/downloads/ernstc/SqlDataInspector/total)

This extension makes it easy to inspect data with just a few clicks.
This Visual Studio Code extension makes it easy to inspect Microsoft SQL Server data with just a few clicks. It supports MSSQL connections through the [SQL Server (mssql)](https://marketplace.visualstudio.com/items?itemName=ms-mssql.mssql) extension.

Please leave a ⭐ as motivation if this tool is helpful for you!

![Example of dashboard](https://raw.githubusercontent.com/ernstc/SqlDataInspector/main/images/screen-071.png)
![Example of dashboard](https://raw.githubusercontent.com/ernstc/SqlDataInspector/feat/vscode-extension-mssql/images/screen-mssql-1.0.0-1.png)

## Features

* Start inspecting data from the server explorer or from the query editor.
* Start inspecting a configured SQL Server database or a selected object from the SQL query editor.
* Shows the list of tables and views of the database.
* Shows the list of columns of the selected table or view.
* Shows all the distinct values of the selected column and their counts.
Expand All @@ -22,46 +22,51 @@ Please leave a ⭐ as motivation if this tool is helpful for you!
* Live monitoring mode for periodically refreshing the views.
* Each selectable element can be copied with CTRL+C.
* All distinct values and counts for a column, can be copied in the clipboard. You can then paste the values in Excel for further analysis, for instance.
* Support for **Microsoft SQL Server**.
* Support for **MySQL** by installing the extension `Microsoft.azuredatastudio-mysql`.
* Support for **PostgresSQL** by installing the extension `Microsoft.azuredatastudio-postgresql`.
* Supports **Microsoft SQL Server (MSSQL)** exclusively.

### Inspecting data from the server explorer
### Connection management

1) Navigate in the server explorer to the database node you want to inspect.
2) Right-click on the database node.
3) Click on the menu item "Inspect data".
SQL Data Inspector uses the SQL Server (mssql) extension for both connection management and query execution. Configure connections in its SQL Server Object Explorer. SQL Data Inspector stores no database credentials.

![Example of dashboard](https://raw.githubusercontent.com/ernstc/SqlDataInspector/main/images/screen-074.png)
### Inspecting a database

1. In the SQL Server Object Explorer, right-click a connected server or database.
2. Select **Inspect Data**.
3. SQL Data Inspector opens the inspector for the selected SQL Server database.

Alternatively, run **Inspect Data** from the Command Palette and select a configured SQL Server connection that has a database already selected. The inspector opens with the selected database.

![Example of dashboard](https://raw.githubusercontent.com/ernstc/SqlDataInspector/feat/vscode-extension-mssql/images/screen-mssql-1.0.0-2.png)

### Inspecting data from the query editor

1) Select the text that corresponds to the table name or the full qualified table name.
2) Right-click on the selected text.
3) Click on the menu item "Inspect data".
4) The inspector will be opened and it will show immediately tha data of the selected table.
1. Select a table name or fully qualified table name in a SQL editor.
2. Right-click the selection.
3. Select **Inspect Selected Data**.
4. Select a configured SQL Server connection. The inspector opens with the selected table.

![Example of dashboard](https://raw.githubusercontent.com/ernstc/SqlDataInspector/main/images/screen-073.png)
![Example of dashboard](https://raw.githubusercontent.com/ernstc/SqlDataInspector/feat/vscode-extension-mssql/images/screen-mssql-1.0.0-3.png)

### Extension settings

This extension has the some custom settings that let the user to customize the extension behaviour:
This extension has settings that customize its behavior:

* Order columns alphabetically in the columns and the data inspector views.
* Shows primary key columns first in the columns and the data inspector views.
* Default refresh interval in seconds for the live monitoring view.
* The number of rows to show in the data inspector view.
* Show tables in the objects list.
* Show views in the objects list.
* Trace SQL commands and their results in **Output: SQL Data Inspector**. Disabled by default to prevent query text and returned data from being logged.



## Installation

The current release will be available through the Extensions Marketplace in Azure Data Studio.
The current release will be available through the Visual Studio Marketplace for Visual Studio Code. The SQL Server (mssql) extension is required and is installed automatically as an extension dependency.

Current and Pre-releases will be available from the [Releases](https://github.com/ernstc/SqlDataInspector/releases) tab of the projects repository.
Simply download the VSIX of the release you want, and use the ***Install Extension from VSIX Package*** option in Azure Data Studio.
Download the VSIX of the release you want and use the **Extensions: Install from VSIX...** command in Visual Studio Code.

## Change Log

Expand Down
Binary file added images/screen-mssql-1.0.0-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screen-mssql-1.0.0-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screen-mssql-1.0.0-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading