The Double-Edged Sword of Dynamic SQL EXECUTE Anti Pattern, SQL Injection
Автор: DBs, Data Engineering, Architecture powered by AI
Загружено: 2025-06-09
Просмотров: 14
Описание:
SUBSCRIBE ✅ * / @AlexRosaTexas
This video isn't just about technical details. Discover how to master the art of communicating your technical skills through this AI-created conversation.
Are you confident your SQL Server dynamic SQL is both secure AND performant? Many developers unknowingly use an anti-pattern with EXECUTE and string variables that puts their databases at risk of SQL Injection and silently causes plan cache bloat.
I break down these threats and provide the proven solution: parameterized dynamic SQL with sp_executesql. Plus, learn how Microsoft Defender for SQL can help you detect active attacks. Upgrade your SQL game!
▬▬▬▬▬▬ C H A P T E R S ▬▬▬▬▬▬
(0:00) The Double-Edged Sword of Dynamic SQL
(2:30) The Anti-Pattern: EXECUTE with String Concatenation
(5:28) Threat 1: How SQL Injection Works
(9:22) The Many Faces of SQL Injection Attacks
(12:11) The Catastrophic Consequences of a Successful Attack
(16:16) Threat 2: The Performance Killer - Plan Cache Bloat
(18:25) How Concatenation Creates Thousands of Single-Use Plans
(20:28) The Vicious Cycle of Memory Pressure and High CPU
(22:32) Diagnosis: Using DMVs to Find Plan Cache Bloat
(24:27) The Solution: Parameterization with sp_executesql
(26:20) Head-to-Head: EXECUTE vs. sp_executesql
(29:13) Refactoring to Secure Code: A Practical Example
(32:33) The Safety Net: Detecting Attacks with Microsoft Defender for SQL
(38:55) Defense in Depth: A Multi-Layered Security Strategy
(39:27) Best Practice: Application-Side Input Validation
(40:53) Best Practice: The Principle of Least Privilege
(42:32) Best Practice: Row-Level Security & Dynamic Data Masking
(44:08) Best Practice: Robust Error Handling to Prevent Leaks
(45:14) Best Practice: Comprehensive Monitoring and Auditing
(47:45) Summary: Taming the Dangers of Dynamic SQL
(50:27) Call to Action: Auditing Your Code and Setting Standards
▬▬▬▬▬▬ Check out! ▬▬▬▬▬▬
💻 The blog post for this video
🔗 https://alexrosatexas.blogspot.com/20...
💻 Explore my Digital Hub
🔗 https://bit.ly/m/AlexRosa
📖 The AI Database Podcast
🔗 / @alexrosatexas
📅 Daily Posts (Tech Quota of the Day, Tech Quiz)
🔗 / @alexrosatexas
🧠 My LinkedIn Profile, let’s connect.
🔗 / alexrosatxus
(English) Turn on subtitles, then use the auto-translate option in settings to view them in your native language.
(Portuguese) Ative as legendas e use a opção de tradução automática nas configurações para visualizá-las no seu idioma nativo.
(Spanish) Active los subtítulos y luego utilice la opción de traducción automática en la configuración para verlos en su idioma nativo.
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: