ADO.NET Core
Basics of ADO.NET
Basics of ADO.NET
  • Concepts
    • Database tools overview
      • SSMS & VS Data tools
    • ADO.NET Basics
  • Code
    • Connected mode
      • Create the database
      • Create project
      • Read data
      • Insert data
    • Disconnected mode
      • Create project
      • Read data
      • Insert data
    • GitHub Repo
  • Optional
    • WinForms walkthrough MS
    • Northwind DB
Powered by GitBook
On this page
  1. Code

Connected mode

Connected mode

In connected mode, the application connects to a database, sends SQL commands to it, and receives the result sets synchronously. The connection remains open until the application explicitly closes it or terminates. While the connection is open, the application can execute multiple SQL commands on the same connection, and the results are immediately available to the application.

In ADO.NET, the "connected mode" refers to a data access model where a connection to a data source is established and kept open throughout the duration of the data access operation.

This approach is useful when the application needs to perform a series of database operations that require multiple round trips to the database, as the open connection avoids the overhead of repeatedly opening and closing the connection.

Let us discuss how to create and read a database in connected mode using ADO.NET

PreviousADO.NET BasicsNextCreate the database

Last updated 2 years ago