debugging-sql
Guide SQL Server debugging labs with WinDbg: access violations, hangs, scheduler deadlocks, query aborts, latches, spinlocks, and unexplained CPU. Use when working with examples/debugging_sql or choosing one of its seven labs.
- License 许可
- MIT
- 所属仓库
- microsoft/bobsql
- 最近更新
- 2026-11-11
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- debugging-sql
- description
- Guide SQL Server debugging labs with WinDbg: access violations, hangs, scheduler deadlocks, query aborts, latches, spinlocks, and unexplained CPU. Use when working with examples/debugging_sql or choosing one of its seven labs.
03 SKILL.md 正文
SQL Server debugging labs
Procedure
- Read the collection map. Select the matching failure/observation lab; do not run all reproductions.
- Read that lab's README and inspect command/SQL/native entry points. Confirm Windows SQL Server build, instance, privileges, WinDbg, symbol availability, SQL client tools, and any required stress driver.
- Identify actions that attach, pause, crash, restart, or deliberately hang SQL Server. Require a disposable lab and explicit approval before them. Check local executable, dump, symbol-cache, database, and file paths.
- Capture baseline requests/waits/stacks. Run only the approved reproduction, keeping a separate diagnostic or DAC connection where the lab requires it.
- Correlate actual DMV, CPU, stack, exception, or dump evidence with the walkthrough. Symbol addresses and internal types are build-specific; distinguish unavailable symbols from proof of a different root cause.
- Stop stress processes by their specific IDs, close lab transactions, follow the lab's cleanup, and detach without killing SQL Server unless the approved reproduction requires termination.
Boundaries
Never attach these destructive reproductions to production. Preserve dumps privately; dumps/logs can contain sensitive data. Use secret checks before sharing source or captures.
04 同仓库更多 Skills
sql-versioning-apps
Launch, run, review, rehearse, test, or update the local SQL versioning click-through apps in examples/sqlversioning/apps. Use when the user says run the app, start the app, open the app, demo apps, browser demos, SQL versioning visuals, or asks about the Cowboys-themed demo pages. In this repository, running the app means opening a NEW normal external browser window, not the VS Code integrated browser.
shift-handoff
Find the patients who most need a shift handoff, and prepare a structured SBAR handoff for one named patient — grounded entirely in that patient's live chart — for the clinician to review and save.
nvidianim
NVIDIA NIM on AKS with GPU — vector embeddings and chat completions from SQL Server 2025 T-SQL using GPU-accelerated inference. Use when: deploying NIM containers on AKS, creating AKS GPU node pools, testing NIM endpoints, creating external models for NIM embeddings, Azure Local edge AI pattern, working in nvidianim/.
zavahospital
ZavaHospital – AI-powered inpatient clinical assistant using SQL Server 2025 vector search + NVIDIA NIM on AKS. Use when: deploying zavahospital scripts, building encounter embeddings, running vector search procs, generating clinical recommendations via NIM chat, creating doctor notes search, working in zavahealth/sqlserver2025/zavahospital/.
wardgeneral
Guide the cumulative Ward General Hospital Azure SQL Hyperscale demo: provision/schema, architecture, .NET 10 Blazor app, SQL AI, agentic shift handoff, security/RLS, observability, failover/PITR/geo, scaling, and tuning. Use for examples/wardgeneral.
waits-latches-spinlocks
Investigate SQL Server waits, scheduler yield, buffer latches, LOCK_HASH spinlocks, and Azure SQL log governance. Use when working with examples/insidewaitslatchesspinlocks and its debugwaits, latches, spinlocks, or loggovernance areas.