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.
Resources:
Analyzing Database Code to Improve Code Quality
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!