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

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Community Hub.

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!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.