TB Blog
  • Home
  • About
  • Contact
  • Categories
    • Database
    • Software
    • Technology
  • Courses
    • All courses
    • ASP.NET Core & Web Development
      • ASP.NET Core MVC Tutorials
      • Real-Time Applications with ASP.NET Core SignalR
    • Databases & Data Access
      • Microsoft SQL Server Fundamentals: Database Management and T-SQL Applications
      • Professional Database Programming with Entity Framework Core and LINQ: Common Problems and Solutions
    • REST API & Software Architecture
      • 3-Tier Architecture and REST API Development with .NET, API, Web & SQL Server
      • ASP.NET Core Clean Architecture: Professional Layered Architecture in a Real-World Project
      • Professional REST API Design
    • Software Security & Testing
      • ASP.NET Core Identity, JWT and Application Security
      • Professional .NET Testing with Unit Tests and Integration Tests
    • Performance & Caching
      • ASP.NET Core Performance Optimization
      • Redis and Cache Management for ASP.NET Core
    • DevOps, Docker & Observability
      • Docker with ASP.NET Core and SQL Server
      • Serilog, Logging and OpenTelemetry for ASP.NET Core Observability
    • Messaging, Queues, and Background Processes
      • Asynchronous Processing with RabbitMQ, Background Jobs and Hangfire
    • Distributed Systems and Microservices Architecture
      • Distributed ASP.NET Core Applications with Microservices and Aspire
TR | EN

Database

See All Category Posts

SQL Server Row-Level Security: Safe and Auditable Tenant Data Isolation
Database • 18.11.2026

SQL Server Row-Level Security: Safe and Auditable Tenant Data Isolation

Implement tenant-based isolation in SQL Server with Row-Level Security, SESSION_CONTEXT, filter predicates, and write protection using a realistic order example.

SQL Server Resumable Index Rebuilds: Reducing Downtime and Avoiding Restarts on Busy Tables
Database • 16.11.2026

SQL Server Resumable Index Rebuilds: Reducing Downtime and Avoiding Restarts on Busy Tables

Learn how to run large SQL Server index rebuilds online and resumably, with practical guidance for maintenance windows, monitoring, disk space, and transaction log usage.

SQL Server Change Tracking vs. CDC: Choosing the Right Change Detection Model
Database • 11.11.2026

SQL Server Change Tracking vs. CDC: Choosing the Right Change Detection Model

Learn the practical differences between SQL Server Change Tracking and Change Data Capture, with T-SQL examples for reliable synchronization workflows.

SQL Server Data Integrity: Preventing Invalid Rows with CHECK, UNIQUE, and FOREIGN KEY
Database • 09.11.2026

SQL Server Data Integrity: Preventing Invalid Rows with CHECK, UNIQUE, and FOREIGN KEY

A practical SQL Server example showing how CHECK, UNIQUE, and FOREIGN KEY constraints prevent duplicate, invalid, and orphaned records.

SQL Server Application Locks: Preventing Duplicate Jobs and Race Conditions
Database • 05.11.2026

SQL Server Application Locks: Preventing Duplicate Jobs and Race Conditions

Learn how to use SQL Server application locks to coordinate distributed workers and prevent duplicate order processing with a practical T-SQL example.

SQL Server Temporal Tables: Automatically Keeping Row History and Querying Past States
Database • 05.11.2026

SQL Server Temporal Tables: Automatically Keeping Row History and Querying Past States

Learn how SQL Server temporal tables automatically preserve row versions, support point-in-time queries, and help investigate incorrect data changes with a practical example.

Querying and Indexing JSON Data in SQL Server: From Flexible Schema to Predictable Performance
Database • 28.10.2026

Querying and Indexing JSON Data in SQL Server: From Flexible Schema to Predictable Performance

Learn how to validate JSON, use JSON_VALUE and OPENJSON, query arrays, and improve SQL Server JSON performance with computed-column indexes through a practical example.

SQL Server Columnstore Index Design: Accelerating Analytics and Keeping Rowgroups Healthy
Database • 23.10.2026

SQL Server Columnstore Index Design: Accelerating Analytics and Keeping Rowgroups Healthy

A practical guide to SQL Server columnstore indexes using a realistic sales fact table. Covers index selection, loading patterns, rowgroup diagnostics, and maintenance.

SQL Server Filtered Indexes: Faster Queries with Lower Maintenance Cost
Database • 15.10.2026

SQL Server Filtered Indexes: Faster Queries with Lower Maintenance Cost

Learn how to design, validate, and maintain SQL Server filtered indexes for queries that target small, well-defined subsets of a table.

SQL Server Compatibility Levels: A Safe Workflow for Changing Query Behavior
Database • 10.10.2026

SQL Server Compatibility Levels: A Safe Workflow for Changing Query Behavior

Learn how to change SQL Server database compatibility levels safely, establish a Query Store baseline, detect regressions, and apply targeted fixes.

SQL Server Memory Grants: Diagnosing Spills and Reducing Query Memory
Database • 04.10.2026

SQL Server Memory Grants: Diagnosing Spills and Reducing Query Memory

Learn how SQL Server memory grants work, how to detect sort and hash spills, and how to reduce excessive query execution memory with practical diagnostics.

SQL Server Concurrency Guide: Choosing Isolation Levels and Row Versioning
Database • 25.09.2026

SQL Server Concurrency Guide: Choosing Isolation Levels and Row Versioning

Learn how SQL Server isolation levels, READ_COMMITTED_SNAPSHOT, and SNAPSHOT affect consistency, blocking, version stores, and application design.

Search-Friendly SQL Server Queries: Date Ranges, LIKE Patterns, and Computed Columns
Database • 14.09.2026

Search-Friendly SQL Server Queries: Date Ranges, LIKE Patterns, and Computed Columns

Learn how to write SQL Server predicates that make better use of indexes through date ranges, LIKE patterns, computed columns, and filtered indexes.

Designing a SQL Server Backup Chain: RPO, RTO, and Point-in-Time Restore
Database • 07.09.2026

Designing a SQL Server Backup Chain: RPO, RTO, and Point-in-Time Restore

Build a practical SQL Server recovery plan by aligning RPO and RTO targets with full, differential, and transaction log backups.

SQL Server Transaction Log Growth: Sizing, Monitoring, and VLF Management
Database • 05.09.2026

SQL Server Transaction Log Growth: Sizing, Monitoring, and VLF Management

Learn how SQL Server transaction logs work, why log files grow, how VLFs affect operations, and how to build a practical monitoring strategy.

SQL Server TempDB Design: Sizing, File Layout, and Troubleshooting
Database • 02.09.2026

SQL Server TempDB Design: Sizing, File Layout, and Troubleshooting

A practical guide to sizing SQL Server TempDB, balancing data files, monitoring space usage, and diagnosing allocation contention.

SQL Server’s Hidden Performance Problem: How to Find and Prevent Implicit Conversions
Database • 31.08.2026

SQL Server’s Hidden Performance Problem: How to Find and Prevent Implicit Conversions

A practical guide to finding implicit conversions in SQL Server execution plans and preventing unnecessary scans, CPU usage, and read overhead.

SQL Server Statistics Guide: Finding and Correcting Bad Row Estimates
Database • 29.08.2026

SQL Server Statistics Guide: Finding and Correcting Bad Row Estimates

Learn how SQL Server statistics influence query plans, how to check whether they are stale, and how to build a safe, evidence-based maintenance process.

Detecting and Safely Fixing Plan Regressions with SQL Server Query Store
Database • 27.08.2026

Detecting and Safely Fixing Plan Regressions with SQL Server Query Store

Learn how to use SQL Server Query Store to detect query plan changes, compare historical performance, and apply controlled plan forcing.

What Is SQL Server Parameter Sniffing? Why Can the Same Query Be Fast Sometimes and Extremely Slow at Other Times?
Database • 24.08.2026

What Is SQL Server Parameter Sniffing? Why Can the Same Query Be Fast Sometimes and Extremely Slow at Other Times?

SQL Server Parameter Sniffing can cause the same stored procedure or parameterized query to perform very differently depending on the parameter value used when its execution plan was compiled. This article explains plan caching, uneven data distribution, Parameter Sensitive Plan optimization and practical solutions including RECOMPILE, OPTIMIZE FOR UNKNOWN, Query Store and proper indexing.

SQL Server Table Partitioning: Managing Large Tables Over Time
Database • 24.08.2026

SQL Server Table Partitioning: Managing Large Tables Over Time

Use partition elimination and sliding-window archiving to manage very large time-based tables while avoiding common partitioning and indexing mistakes.

SQL Server Always On: Controlled Failover and a Real Drill
Database • 24.08.2026

SQL Server Always On: Controlled Failover and a Real Drill

Move beyond Availability Group setup by defining RPO and RTO, validating replica health, testing listener behavior, and running an end-to-end failover drill.

What Is a SQL Server Deadlock? Why Database Deadlocks Happen and How to Fix Them
Database • 21.08.2026

What Is a SQL Server Deadlock? Why Database Deadlocks Happen and How to Fix Them

A SQL Server deadlock occurs when two or more transactions wait for resources held by each other and none of them can continue. This article explains how deadlocks happen, why SQL Server terminates one transaction as the deadlock victim, how to analyze deadlock graphs and how consistent access order, shorter transactions, proper indexes and retry strategies can reduce deadlock problems.

Why Is My SQL Query Not Returning the Expected Result? Duplicate Rows After JOIN Operations
Database • 11.08.2026

Why Is My SQL Query Not Returning the Expected Result? Duplicate Rows After JOIN Operations

One of the most common SQL problems is getting more rows than expected after a JOIN operation. In this article, we explain why rows multiply, the difference between true duplicates and repeated rows caused by one-to-many relationships, and how to solve the problem using DISTINCT, GROUP BY, EXISTS, subqueries, and ROW_NUMBER.

Zero-Downtime Database Migration Strategy: .NET and SQL Server
Database • 14.06.2026

Zero-Downtime Database Migration Strategy: .NET and SQL Server

How can database schemas be updated without interrupting a production application? This comprehensive guide explores zero-downtime database migration strategies using ASP.NET Core, Entity Framework Core, and SQL Server. Learn how to implement Expand–Migrate–Contract, maintain backward compatibility, migrate millions of records safely, monitor database locks, automate deployments, and recover from failures through practical C# and SQL examples.

SQL Server Execution Plan Reading Guide: How to Analyze Slow Queries
Database • 13.06.2026

SQL Server Execution Plan Reading Guide: How to Analyze Slow Queries

Looking only at SQL text is often not enough to understand why a query is slow. An execution plan shows how SQL Server accesses data, which indexes it uses, how tables are joined and where processing costs occur. This guide explains Estimated and Actual Execution Plans, Index Seek, Scan, Key Lookup, Nested Loops, Hash Match, Merge Join, cardinality estimates, memory spills, Missing Index suggestions and Query Store with practical SQL examples.

What Is Database Normalization?
Database • 15.05.2026

What Is Database Normalization?

Database normalization is a design technique used in relational databases to organize data in a cleaner, more consistent, and manageable structure. Its main purpose is to prevent unnecessary duplication of the same information and to create proper relationships between tables.

Trending

  • 1

    What Is Database Normalization?

    491 views
  • 2

    Why Is My SQL Query Not Returning the Expected Result? Duplicate Rows After JOIN Operations

    466 views
  • 3

    SQL Server’s Hidden Performance Problem: How to Find and Prevent Implicit Conversions

    307 views
  • 4

    Zero-Downtime Database Migration Strategy: .NET and SQL Server

    307 views
  • 5

    SQL Server Execution Plan Reading Guide: How to Analyze Slow Queries

    286 views
TB Blog Tuğrul BOSTAN

İzmir, Türkiye

Tel: +90 505 414 5902

Email: info@tugrulbostan.com

Useful Links

  • Microsoft Learn
  • Stack Overflow
  • GitHub
  • MDN Web Docs
  • DevBlogs Microsoft
  • W3C

Legal

  • Contact
  • Personal Data Protection Notice
  • Privacy Policy
  • Cookie Policy
  • Terms of Use

© Copyright TB Blog All Rights Reserved