Skip to main content

Visualize Administrative Views for queries, metrics and execution plans as interactive single-file html report for one or many sql servers. It supports SQL Server 2005 ... SQL Server 2025.

Total Downloads
42.5K
42,528
Published
Apr 27, 2026
6mo ago

Get Started

dotnet add package SqlServer.AdministrativeViews --version 1.1.322

No framework information available.

README

SQL Server Administrative Veiws CLI

  • Visualizes SQL Server Administrative Views for queries, metrics, and execution plans.
  • Generates a single-file offline interactive HTML report for one or multiple SQL Servers.
  • Designed for Continuous Integration (CI) scenarios.
  • Supports SQL Server 2005...2025 including Local DB.

UI Highlights

  • One-click link to execution plan diagram per query,
  • Sql syntax highlighter,
  • Light and dark theme support,
  • Metrics sorting,
  • Database filter,
  • Column chooser.

Demođź”—

Installation

dotnet tool install --global SqlServer.AdministrativeViews

Example

$report = "$($ENV:SYSTEM_ARTIFACTSDIRECTORY)\Reports\{InstanceName} {Version} on {Platform}"
SqlServer.AdministrativeViews -o $report -all

# or 

$report = "$($ENV:GITHUB_TEMP)\Reports\{InstanceName} {Version} on {Platform}"
dotnet dnx SqlServer.AdministrativeViews -- -o $report -all

GITHUB_TEMP and SYSTEM_ARTIFACTSDIRECTORY are directories that are emptied at the beginning and end of each job on github actions workfkow and azure devops pipeline.

Options

-o "Reports\{InstanceName}"  â‡˘  Write a report to a file named as sql server or local db instance in the relative folder Report. Full path is also allowed. Missing folders will be created. {InstanceName} placeholder is useful if multiple SQL Servers are passed. Additional file name placeholders are {Version} and {Platform}.

--all-local-servers, -all  â‡˘  Include all local sql servers and all Local DB instances. Sql Server Browser service is not required. All instances are discovered by registry and SQL Local DB management API.

-s "(local)\SQLEXPRESS"  â‡˘  Include local SQLEXPRESS instance.

-cs "TrustServerCertificate=True;Data Source=127.0.0.1,1433;User ID=sa;Password=p@assw0rd!"  â‡˘  Include SQL Server on Linux, on a network, or in the cloud.

Parameters -s (server instance name), -cs (connection string) may be included multiple times.

Build Notes

This dotnet tool is built for .NET 6.0, 8.0, and 10.0 SDK.

Standalone cli tool is also available without SDK as .NET Core and .NET Framework builds for Windows, Linux, and macOS: github releases

See Also

To install and configure SQL Server on Azure DevOps pipeline, Github Actions workflow, etc please take a look at powershell SqlServer-Version-Management module.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.