Skip to content

Database tools

Erik Ejlskov Jensen edited this page Nov 29, 2024 · 5 revisions

The database tools are a set of tools to enhance your development experience with databases in Visual Studio.

Right click a project in Solution Explorer and select a tool:

Data API Builder Scaffold (preview)

This feature allows you to generate a .cmd file to run the Data API Builder dab CLI tool to quickly configure a CRUD Web API with REST and GraphQL endpoints. Read more in my blog post

Visualize Database Schema

Allows you to visualize the schema of the chosen database. Requires the Visual Studio DGML viewer component (not available for ARM64)

ER Diagram

Generate a Mermaid Entity Relationship diagram of your database project. Requires the Mermaid editor extension in order to view the diagram in Visual Studio.

Right click a database connection in Server Explorer and select a tool:

ER Diagram

Generate a Mermaid Entity Relationship diagram of your database project. Requires the Mermaid editor extension in order to view the diagram in Visual Studio.

Analyze (experimental)

Runs T-SQL static code analysis against your SQL Server / Azure SQL database, and displays the results in html format. If you want to add this to a database project during build, follow the guide in my blog post. Thanks to the SqlServer.Rules project for sharing the building blocks for this feature.