About 26,800 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. 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 …

  5. Executing a command - ADO.NET Provider for SQL Server

    Oct 17, 2024 · The Microsoft SqlClient Data Provider for SQL Server has SqlCommand object that inherits from DbCommand. This object exposes methods for executing commands based on the type …

  6. Using SqlCommand in C# with Examples - Web Dev Tutor

    Aug 7, 2024 · In C#, the SqlCommand class is used to execute SQL statements against a SQL Server database. It allows developers to interact with databases efficiently and securely.

  7. C# SqlClient Tutorial: SqlConnection, SqlCommand

    In this example, we use the SqlConnection and SqlCommand ADO.NET patterns. Look at the string parameter to the SqlCommand constructor, and it is an SQL command that selects all cells from …

  8. 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.

  9. Utilizing SqlCommand in C# for Database Interaction

    Aug 26, 2023 · The SqlCommand class from the System.Data.SqlClient namespace serves as a bridge between your application and the SQL Server database. This article delves into the usage of …

  10. SqlClient/doc/samples/SqlCommand.cs at main - GitHub

    Microsoft.Data.SqlClient provides database connectivity to SQL Server for .NET applications. - SqlClient/doc/samples/SqlCommand.cs at main · dotnet/SqlClient