16:32Code Analyze your SQL scripts in Visual Studio and elsewhere | Data Exposed: MVP Edition
From the creator
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. 0:00 Introduction 2:38 Demo ✔️ Resources: Analyzing Database Code to Improve Code Quality | Microsoft Learn: https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2010/dd172133(v=vs.100) Transact-SQL Design Issues | Microsoft Learn: https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2010/dd193411(v=vs.100) Transact-SQL Naming Issues | Microsoft Learn: https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2010/dd193246(v=vs.100) Transact-SQL Performance Issues | Microsoft Learn:https://learn.microsoft.com/previous-versions/visualstudio/visual-studio-2010/dd172117(v=vs.100) How to: Code analyze your SQL Server T-SQL scripts in Visual Studio | ErikEJ's blog: https://erikej.github.io/dacfx/codeanalysis/sqlserver/2024/04/02/dacfx-codeanalysis.html NuGet Gallery | Packages matching erikej.dacfx: https://www.nuget.
Published 2024-04-30 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





