# Full Example

A complete console program that reads the connection string from appsettings.json, queries Northwind's categories, and prints a report.

![Cheat sheet: Full Example](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/8482bb8500b648bbbd0048895544fc83.webp)

- Category: C#
- Level: Journeyman
- Tags: c-sharp, Null-Forgiving Operator, Raw String Literal, t-sql
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/querying-a-database-with-ado-net-full-example-cheat-sheet
