Blog Post

Azure SQL Blog
1 MIN READ

Code Analyze your SQL scripts in Visual Studio and elsewhere | Data Exposed: MVP Edition

MarisaMathews's avatar
MarisaMathews
Icon for Microsoft rankMicrosoft
Apr 30, 2024

Maybe you already take advantage of the C# code analyzers built into the .NET SDK, that help you improve code consistency, quality, security and avoid common mistakes and potential bugs. But did you know that it is also possible to run analyzer rules against your SQL Server T-SQL object definitions (DDL) and stored procedures (DML)? By storing all your T-SQL scripts under source control in a Visual Studio Database Project (.sqlproj) or in a MSBuild.SDK.Sqlproj project, you can take advantage of this little known feature. Learn more in this episode of Data Exposed: MVP Edition with Anna Hoffman and Erik Ejlskov.

 

Watch on Data Exposed

 

Resources:

Analyzing Database Code to Improve Code Quality

Transact-SQL Design Issues

Transact-SQL Naming Issues

Transact-SQL Performance Issues

How to: Code analyze your SQL Server T-SQL scripts in Visual Studio | ErikEJ's blog

 

View/share our latest episodes on Microsoft Learn and YouTube!

Updated Apr 30, 2024
Version 5.0
No CommentsBe the first to comment