Post Content
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.org/packages?q=erikej.dacfx
About Erik Ejlskov Jensen:
Erik Ejlskov is a Developer Technologies MVP (former Data Platform) and a Principal Consultant for Delegate A/S, where he helps customers create cloud solutions. He maintains a number of opensource libraries and tools on GitHub that help developers to be productive with .NET and the Azure Data Platform, including the popular “EF Core Power Tools” and “SQLite Toolbox” Visual Studio extensions
About MVPs:
Microsoft Most Valuable Professionals, or MVPs, are technology experts who passionately share their knowledge with the community. They are always on the “bleeding edge” and have an unstoppable urge to get their hands on new, exciting technologies. They have very deep knowledge of Microsoft products and services, while also being able to bring together diverse platforms, products and solutions, to solve real world problems. MVPs make up a global community of over 4,000 technical experts and community leaders across 90 countries/regions and are driven by their passion, community spirit, and quest for knowledge. Above all and in addition to their amazing technical abilities, MVPs are always willing to help others – that’s what sets them apart. Learn more: https://aka.ms/mvpprogram
? Let’s connect:
Twitter: Anna Hoffman, https://twitter.com/AnalyticAnna
Twitter: AzureSQL, https://aka.ms/azuresqltw
? To watch other MVP Edition episodes, see our playlist: https://aka.ms/dataexposedmvps
To check out even more Data Exposed episodes, see our playlist: https://aka.ms/dataexposedyt
? Subscribe to our channels for even more SQL tips:
Microsoft Azure SQL: https://aka.ms/msazuresqlyt
Microsoft SQL Server: https://aka.ms/mssqlserveryt
Microsoft Developer: https://aka.ms/microsoftdeveloperyt
#AzureSQL #SQLServer Read More Microsoft Developer
+ There are no comments
Add yours