About 40,100 results
Open links in new tab
  1. SqlConnection Class (Microsoft.Data.SqlClient) | Microsoft Learn

    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.

  2. C# - SqlConnection Example - Dot Net Perls

    Dec 24, 2024 · We use SqlConnection in a "using" statement. The SqlConnection has a constructor that requires a string reference pointing to the connection string character data.

  3. ADO.NET Core SqlConnection Class - Dot Net Tutorials

    The SqlConnection class (typically from the Microsoft.Data.SqlClient namespace) in ADO.NET Core is used to establish and manage a session with a SQL Server database.

  4. How to Connect to SQL Database on C# - Delft Stack

    Feb 2, 2024 · This tutorial demonstrates how to connect to a SQL database on C# using SqlConnection object.

  5. A Comprehensive Guide to Using SqlConnection in C#

    Aug 7, 2024 · When working with databases in C#, one of the essential components is the SqlConnection class. This class allows you to establish a connection to a SQL Server …

  6. SqlConnection.Open Method (Microsoft.Data.SqlClient)

    The SqlConnection draws an open connection from the connection pool if one is available. Otherwise, it establishes a new connection to an instance of SQL Server.

  7. C# SqlConnection Example: Using, SqlCommand - The Developer …

    The using statement creates a read-only variable of type SqlConnection. You need to call Open () on the SqlConnection instance before using it in an SqlCommand.

  8. Mastering the C# SqlConnection Class: A Comprehensive Guide

    Aug 7, 2024 · In this guide, we've covered the basics of working with the SqlConnection class in C#. By mastering the SqlConnection class, you can effectively connect to SQL databases, …

  9. SqlConnection.ConnectionString Property (Microsoft.Data.SqlClient)

    SqlConnection properties return only those settings that are contained in the ConnectionString. To connect to a local computer, specify " (local)" for the server.

  10. ADO.NET SqlConnection Class - Dot Net Tutorials

    In this article, I am going to discuss ADO.NET SqlConnection in C#. SqlConnection class is used to establish an open connection to SQL Server