SQL
Relational database fundamentals, SQL Server patterns, schema management, and platform-specific guides.
Pages
- ACID — ACID properties: Atomicity, Consistency, Isolation, and Durability
- Indexes — index types, unique constraints, and
GetIndices.sqlreference - Connection Pool — connection pooling: pool management, reuse, and lifetime
- DAO vs Repository — DAO (Data Access Object) vs Repository pattern comparison
- DbCommand —
IDbCommandhierarchy and command execution patterns - Foreign Key Mapping — SQL Server foreign key queries and multi-column relationship patterns
- Primary Keys — primary key queries via
INFORMATION_SCHEMA - Referential Integrity — referential integrity enforcement with indices and primary keys
- Service Broker — SQL Server Service Broker for asynchronous messaging within the database
- String Search Stored Proc — stored procedure for searching text across database objects
- Table Schema —
sysobjectsvssys.objectsand schema introspection queries - Temporary Tables — temporary table types, scope, and performance advantages
- Views — SQL views: parameterized defaults and view-based query patterns
- Samples — Microsoft sample databases: Northwind and pubs for SQL Server 2000
- MySQL —
MySQLsetup, configuration, and .NET integration - PostgreSQL —
PostgreSQLwithNpgsqlandNpgsql.EntityFrameworkCore.PostgreSQL - SQL LocalDB — SQL Server Express
LocalDBinstances, firewall configuration, and Azure Storage Emulator
Scripts
The scripts/ folder contains sample SQL installation scripts:
instnwnd.sql— Northwind sample database installation scriptinstpubs.sql— pubs sample database installation script
Distributed Transactions
Port Windows/MSDTC distributed transactions support 1
TransactionScope distributed transactions exception 2
Implement distributed/promoted transactions in System.Transactions 3
Distributed Transactions: .NET Framework vs .NET Core 4