Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Deep-Dive into Database Programming using ADO .Net in C#
Rating: 2.7 out of 5(3 ratings)
1,044 students

Deep-Dive into Database Programming using ADO .Net in C#

ADPDOTNET
Created bySandeep Soni
Last updated 2/2026
English
English [Auto],

What you'll learn

  • Core ADOdotNET Concepts and Architecture
  • Data Manipulation and CRUD Operations
  • Retrieving Data, Inserting Data, Updating Data, Deleting Data
  • Working with XML Data

Course content

2 sections24 lectures10h 23m total length
  • ADO.NET Evolution And Role Of Managed Providers35:58

    Explore the evolution of ADO.NET, from native drivers to managed providers, and learn core classes—connection, command, data reader, parameter, transaction, and data adapter—for provider independent database access.

  • Quiz
  • Installing SQL Server And Management Studio8:05

    Install SQL Server Express Edition and SQL Server Management Studio to enable local database creation and table management. Choose edition, verify OS bitness, and ensure SQL Server service is started.

  • Quiz
  • Establishing Connection With Database And Connection Pooling41:29

    Establish a database connection using the sql client, explain connection pooling, and fetch connection strings from configuration to optimize open and close operations.

  • Quiz
  • Executing Insert, Update And Delete Commands31:25

    Explore executing insert, update, and delete statements using the SqlCommand object, choosing execute non query, execute scalar, and execute reader, while managing connections and identity retrieval on the same connection.

  • Quiz
  • Fetching Data Using Select Command25:18

    Master fetching data via a select statement from front end, using a back-end cursor and a data reader to iterate results, with get ordinal and get methods and null handling.

  • Quiz
  • How to Implement Login in Application16:40

    Demonstrates a login verification workflow, highlighting common mistakes and showing how to enforce case-sensitive password checks by fetching the stored password with a data reader and comparing client-side.

  • Quiz
  • Multiple Active Result sets17:07

    Learn how to enable multiple active result sets (MARS) in ADO.NET with C#, allowing multiple data readers on one connection while querying department and employee data.

  • Quiz
  • Parameterialized Prepared Statements47:13

    Understand parameterized and prepared statements in ADO.NET, including how to use placeholders and parameters, create and reuse execution plans, handle binary data, and perform multiple inserts efficiently.

  • Quiz
  • Executing Stored Procedures31:56

    Explore how stored procedures, pre-compiled back-end SQL Server logic, enable fast data operations and learn to execute them from C# using ADO.NET with parameters, including output and multiple result sets.

  • Managing Database Transaction And DTC38:19

    Explore how to manage a transaction as a unit of multiple sql statements to modify the database state, using begin transaction, commit, rollback, and transaction scope for dtc coordination.

  • Asynchronous Execution Of SQL Commands20:41

    Learn how to implement asynchronous execution of SQL commands in C# with ado .net, replacing synchronous patterns using begin/end methods and async/await to keep the UI responsive.

  • Writing Managed Provider Independent Code18:50

    Convert provider-specific code to provider independent code using db provider factories, interfaces like IDBConnection and IDBCommand, and provider invariant names to dynamically create connections, commands, and parameters.

  • Writing Utility Class With Common Code15:32

    Create a reusable db util class with static methods to execute stored procedures, handle parameters, and return results, reducing code duplication across inserts, updates, and queries.

  • Summary And API Used12:24

    summarizes database programming with ado .net in c#, covering parameterized sql, crud via command objects, stored procedures, provider independent code, and transactions with transaction scope.

Requirements

  • Proficiency in ADONET: Students will gain a strong understanding of ADONET concepts and its role in database programming.
  • Hands-on Experience: Develop practical skills in connecting to databases, executing queries, and manipulating data using C#

Description

(ActiveX Data Objects for .NET) is a data access technology built into the .NET Framework that allows you to connect to various data sources, retrieve and manipulate data, and perform operations like reading, updating, inserting, and deleting records.

Key Components and Concepts:

  • Data Providers: Specialized classes that act as bridges between your C# code and specific data sources, such as SQL Server, Oracle, MySQL, or XML files.

  • Connections: Represent a communication channel between your application and the data source, enabling you to send commands and receive results.

  • Command Objects: Encapsulate SQL statements or stored procedures to be executed against the database.

  • Data Readers: Forward-only, read-only streams of data retrieved from a database, efficient for fast retrieval and processing.

  • Data Adapters: Bridge between a DataSet and a data source, used to fill a DataSet with data and reconcile changes back to the database.

  • DataSets: In-memory, disconnected representations of data, allowing for offline manipulation and data binding to UI elements.

Common Tasks Using  in C#:

  1. Connecting to a Data Source:

    • Specifying connection string details (provider name, server, database name, authentication credentials).

  2. Executing Commands:

    • Using command objects to perform SQL queries, stored procedures, or other database operations.

  3. Retrieving Data:

    • Fetching data using data readers or filling DataSets for further manipulation.

  4. Manipulating Data:

    • Updating, inserting, or deleting records within DataSets or directly through commands.

  5. Managing Transactions:

    • Ensuring data consistency and integrity by grouping operations into logical units.

Benefits of :

  • Unified Data Access Model: Consistent programming model across various data sources.

  • Disconnected Data Handling: Enables offline data manipulation and enhances scalability.

  • Strong Performance: Optimized for efficient data access and manipulation.

  • Integrated with .NET Framework: Seamlessly integrates with other .NET technologies.

Who this course is for:

  • C# Developers
  • Backend Developers
  • Database Analysts
  • Computer Science Students