About 25,600 results
Open links in new tab
  1. Quickstart: Use .NET (C#) to query a database

    Sep 23, 2024 · In this quickstart, you'll use .NET and C# code to connect to a database. You'll then run a Transact-SQL statement to query data. This quickstart is applicable to Windows, …

  2. How do I connect to a SQL database from C#? - Stack Overflow

    Currently the easiest way to connect to your database and perform queries in C# is LinqToSQL. It will save you a lot of headache as compared to using "old-school" ADO connections.

  3. Basic Database Operations Using C# - GeeksforGeeks

    Jan 31, 2023 · In this article, you are going to learn about how to perform basic database operations using system.data.SqlClient namespace in C#. The basic operations are INSERT, …

  4. C# Database Connection: How to connect SQL Server (Example)

    Aug 13, 2025 · In this tutorial, you will learn how to connect C# application to Microsoft SQL Server Database and Access data. We will also learn Insert, Update & Delete the database …

  5. C# - SqlClient Tutorial - Dot Net Perls

    Aug 27, 2025 · SqlClient interacts with SQL Server, and it allows the development of data-driven applications. The types we use include SqlConnection, SqlCommand, and SqlDataReader.

  6. Working With An SQL Database With C# in .NET - eecs.blog

    Oct 15, 2024 · In this code snippet, I’ll show you how to connect to and query an SQL database with C# in .NET. I’ll also show you how to perform the queries properly by using …

  7. Querying SQL Server Tables from .NET

    Nov 14, 2018 · In this tip, we are going to see how to query SQL Server tables from .NET, get the results, and process them. More specifically, we are going to continue and further develop the …

  8. SqlConnection Class (Microsoft.Data.SqlClient)

    A SqlConnection object represents a unique session to a SQL Server data source. With a client/server database system, it is equivalent to a network connection to the server.

  9. SQL Server CRUD Tutorials in C#: A Step-by-Step Guide

    Oct 5, 2023 · SQL Server is a powerful, enterprise-grade relational database management system developed by Microsoft, and C# is a versatile programming language. In this tutorial, we will …

  10. Mastering SQL Queries in C# with SqlConnection - Web Dev Tutor

    Aug 7, 2024 · In this guide, we've explored how to execute SQL queries in C# using SqlConnection. By mastering the usage of SqlConnection, you can streamline database …