About 2,380 results
Open links in new tab
  1. SqlCommand Class (Microsoft.Data.SqlClient) | Microsoft Learn

    The following sample shows how to create and execute different types of SqlCommand objects. First you must create the sample database, by executing the following script:

  2. ADO.NET SqlCommand in C# with Examples - Dot Net Tutorials

    In this article, I am going to discuss ADO.NET SqlCommand in C#. SqlCommand class is used to store and execute SQL statement for SQL Server

  3. C# - SqlCommand Example - Dot Net Perls

    Oct 11, 2023 · This program uses the SqlCommand data object in C#. We use SqlCommand in the context of a complete but trivial program that reads data from a specific database on the disk.

  4. referencesource/System.Data/System/Data/SqlClient/SqlCommand

    Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework - referencesource/System.Data/System/Data/SqlClient/SqlCommand.cs at main · …

  5. ADO - SqlCommand Class - eVidhya

    The SqlCommand class is part of the ADO.NET library in C# and is used to execute SQL commands against a database. It represents a parameterized SQL statement or stored procedure to be …

  6. C# SqlCommand - The Developer Blog

    First, this program demonstrates the usage of the SqlCommand data object in the C# language. We use SqlCommand in the context of a complete but trivial program that reads data from a specific …

  7. Lesson 03: The SqlCommand Object - C# Station

    Jun 7, 2016 · A SqlCommand object allows you to specify what type of interaction you want to perform with a database. For example, you can do select, insert, modify, and delete commands on rows of …

  8. SqlCommand Class - Devart

    Example The following example uses the ExecuteReader method of SqlCommand, along with SqlDataReader and SqlConnection, to select rows from a table.

  9. ADO.NET Core SqlCommand Class - Dot Net Tutorials

    In this article, I will discuss the ADO.NET Core SqlCommand Class in Depth with Examples. Please read our previous article discussing the ADO.NET Core SqlConnection Class.

  10. C# - SqlClient Tutorial - Dot Net Perls

    Aug 27, 2025 · Tip Every SqlCommand instance has a Parameter collection, which is an SqlParameterCollection and accessed with the Parameters property. Tip 2 We use the Add instance …