Database Management System (DBMS) / DBMS Architecture

How is Database accessed from Application Programs?

🧠 Overview of the Process

πŸ“Œ Application Program

  • Written in languages like Java, Python, C#, PHP, etc.

  • Contains logic for what data to access and what to do with it.

βœ… Database Connectivity Interface (API / Driver)

  • Acts as a bridge between the application and the DBMS.

  • Examples:

    • JDBC (Java Database Connectivity)

    • ODBC (Open Database Connectivity)

    • Python DB-API (e.g., sqlite3, psycopg2)

    • ORM tools (like Hibernate, SQLAlchemy, Entity Framework)

πŸ“— Query Execution

  • Application sends SQL queries (like SELECT, INSERT, UPDATE, DELETE) through the API.

  • The DBMS interprets, optimizes, and executes the query.

🌍 Results Returned

  • The DBMS sends back results (data or status messages).

  • The application processes and displays the results to users.



βœ… Benefits of Accessing Databases via Applications:

  • Dynamic user interaction (forms, dashboards)

  • Real-time data updates

  • Secure data operations with user authentication

  • Separation of logic and data (maintainable architecture)