# Calling a Stored Procedure from C#

In ADO.NET, put the procedure's name in a SqlCommand, set its CommandType to StoredProcedure, and add each parameter by name. Then read the results as from any query.

![Cheat sheet: Calling a Stored Procedure from C#](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a67554ef6f9a44898541f58ef7c223f6.webp)

- Category: C#
- Level: Journeyman
- Tags: CommandType, c-sharp, Stored Procedure, t-sql
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/stored-procedures-in-t-sql-calling-a-stored-procedure-from-csharp-cheat-sheet
