Database Concepts  «Prev  Next»

Lesson 3

Common Database Systems

Lesson 1 introduced the landscape of relational database systems briefly, and Lesson 2 took a close look at how a single table is actually built, using VirtualBookShelf's own Customer table as the working example. This lesson steps back and spends real time on something Lesson 1 only touched on: comparing the database systems themselves, what each one is good at, where each one falls short, and why this course settled on SQL Server 2025 specifically rather than one of the alternatives.

Why the Choice of Database System Matters

One of the more consequential decisions in planning a web application is choosing which database management system to build it on. As with most technology decisions, there's no single right answer: different database systems suit different uses, team sizes, and budgets, and the right choice for a student project like VirtualBookShelf is rarely the right choice for an enterprise system processing millions of transactions a day, or the reverse.

Things to Consider

A handful of questions come up whenever a new relational database management system (RDBMS) gets selected, whether the decision is for a classroom project or a production purchase:
  1. Number of expected users. A project like VirtualBookShelf might have a handful of users connecting at once; a retail chain's live inventory system might have thousands of concurrent connections hitting it around the clock.
  2. Storage capacity. How much data needs to fit today, and how much room does that leave for the data this application will accumulate a year or five years from now?
  3. Cost. Licensing, hosting, and ongoing support all carry a price tag, and that price tag varies enormously between systems.
  4. Efficiency. How quickly does the system answer a query under real load, not just on a quiet development machine with five sample rows?
  5. Will the database system support your needs now, and is it scalable for the future? A system that works fine today can become a bottleneck if the application outgrows it.
Internet or Intranet Application
  • Will the site support a workgroup or corporate intranet, reachable only inside an organization's own network?
  • Will the site be available to the global internet, reachable by anyone, anywhere?
That last distinction matters more than it might first appear: a system built to serve a few dozen known users on a private network has very different demands placed on it than one built to serve an unpredictable, potentially enormous public audience, which is exactly the kind of application this course's Razor Pages and SQL Server 2025 stack is aimed at.

Applying These Criteria to VirtualBookShelf

Walking through the five criteria above against VirtualBookShelf's own project makes them concrete rather than abstract:
  • Expected users: a handful, realistically, for a course project. VirtualBookShelf's schema doesn't change shape based on that number, though; the same Customer and Inventory tables defined in Lesson 2 would support five users or five thousand without redesigning a single column.
  • Storage capacity: trivial at this scale. Five sample customers and a handful of books take up essentially no space at all; a real bookstore's full catalog and customer base would, but the table design doesn't need to change to accommodate that, only the volume of rows inside it.
  • Cost: effectively zero for this course. SQL Server's free, full-featured Developer edition exists for exactly this kind of coursework and local development, so VirtualBookShelf never has to confront a licensing bill while this course is in progress.
  • Efficiency: not a practical concern yet at VirtualBookShelf's current scale, but the discipline Lesson 2 introduced, a proper primary key, sensible data types, hasn't changed, is exactly what keeps a much bigger version of this same design fast later. Efficiency problems in a real system usually trace back to decisions made at the table-design stage, not just to the database engine chosen.
  • Scalability: VirtualBookShelf's schema is deliberately minimal precisely so later modules can "enhance" it, new columns, new indexes, new constraints, without a redesign, as Module 1, Lesson 3 described.
  • Internet or intranet: VirtualBookShelf is explicitly conceived as a public-facing online bookstore, an internet application in the fullest sense, which is part of why this course leans on ASP.NET Core Razor Pages and a database built to handle that kind of unpredictable public load.
None of VirtualBookShelf's current answers to these questions are dramatic, and that's rather the point: a course project is meant to teach the pattern of asking these questions, not to force every answer toward the enterprise end of the scale.

A Few More Things Worth Weighing

Beyond the five core questions above, a few more dimensions are worth knowing exist, even for a course project rather than an enterprise purchase:
  • Licensing model. Some systems are free and open source (PostgreSQL, MySQL); others charge per-core, per-user, or on a cloud subscription basis (SQL Server, Oracle). The total cost of running a database includes far more than the sticker price of the software itself: hardware, hosting, and administration time all add up, and a "free" open-source system can still end up costing real money in staff time if nobody on the team already knows how to run it well.
  • Security and backup basics. Every serious RDBMS supports encryption, role-based access control, and some form of backup and point-in-time recovery, but how easy those features are to configure correctly varies a great deal from one system to the next. A database that technically supports a security feature isn't the same thing as a team that actually has it configured correctly in production.
  • Vendor and community support. Official documentation, an active community, and a healthy ecosystem of third-party tools all make a real difference when something goes wrong at two in the morning. SQL Server, PostgreSQL, MySQL, and Oracle all have large, active communities; a lesser-known system might not, which can turn a minor problem into a much longer outage simply because nobody has written up the fix yet.
  • Compatibility with what's already in place. A brand-new project like VirtualBookShelf has the luxury of picking its database from scratch; a real organization usually already has existing applications, reporting tools, and staff expertise built around one particular system, and that existing investment often outweighs a marginal technical advantage some other system might offer.
None of this requires running a formal procurement process to understand, even for a course project. Knowing these dimensions exist now will make a real-world deployment decision far less mysterious later, whether that decision is yours to make or one you're asked to evaluate for someone else.

Common Database Systems: A Closer Look

Lesson 1 listed several widely used relational database systems in brief. This lesson looks at five of them more closely, including Microsoft Access, a system that belongs in a different category from the other four:
Database SystemDescriptionBenefitsLimitations
SQL Server 2025 Microsoft's flagship relational database, tightly integrated with .NET and Azure. This course's own choice. Deep, first-party ADO.NET and Entity Framework Core integration; strong tooling (SQL Server Management Studio, Azure Data Studio); mature enterprise features such as temporal tables and advanced indexing. Licensing cost rises quickly at scale; its tightest ecosystem fit is within Microsoft's own stack, less so outside it.
PostgreSQL A free, open-source relational database known for strict standards compliance and extensibility. No licensing cost; highly extensible with custom types and extensions; a large, active open-source community. Lacks some of SQL Server's built-in first-party tooling, though cloud-managed PostgreSQL offerings close much of that gap; ADO.NET and EF Core support exist but aren't Microsoft's own drivers.
MySQL An open-source database extremely common in PHP-based applications and general web hosting. No licensing cost; broad hosting support; a huge ecosystem, especially outside the .NET world. Historically weaker support for some advanced SQL features than PostgreSQL or SQL Server, though recent versions have closed much of that gap; a less natural fit for a dedicated ASP.NET Core and EF Core stack than SQL Server.
Oracle Database Oracle's current flagship is Oracle Database 23ai, with Oracle AI Database 26ai the newest generation. Runs primarily on Linux and Windows, plus Oracle's own cloud and Autonomous Database offerings. Very powerful; built for, and proven at, extremely large enterprise workloads and data volumes. Requires considerable expertise to administer well; licensing and support costs are high, especially relative to open-source alternatives.
Microsoft Access Still current, sold as part of Microsoft 365. A Windows-only desktop database; no Mac version exists. Easy to learn; easy to use; included with many Microsoft 365 plans; a reasonable stepping stone toward SQL Server for someone just getting started with databases. Suited only to small, mostly single-user or small-workgroup applications; doesn't scale to the concurrent-user loads SQL Server, PostgreSQL, MySQL, or Oracle handle. Its web-publishing feature, once marketed as "Access Web Apps," was discontinued by Microsoft back in 2018, so Access today is strictly a desktop tool, not a way to put a database directly on the web.

It's worth noticing what these five systems have in common underneath their differences. Every one of them is relational, every one of them organizes data into tables with rows and columns the way Lesson 2 described, and every one of them understands some dialect of SQL. The differences that actually matter for a course like this one are mostly about ecosystem fit, licensing, and administration, not about whether the fundamental ideas transfer. A data type like Customer's nvarchar column has a close equivalent in every one of these systems, PostgreSQL's varchar, MySQL's VARCHAR, Oracle's VARCHAR2, even Access's Short Text field type; the name changes more than the underlying idea does.

Why This Course Uses SQL Server 2025

Given the five systems above, SQL Server 2025 is this course's choice for a straightforward reason: it's the database with the deepest, most direct integration into the stack this course already teaches. ADO.NET and Entity Framework Core are both first-party Microsoft technologies built with SQL Server as the natural target, and Azure's own hosting options for SQL Server make deploying a finished VirtualBookShelf application that much simpler once this course gets there.

That choice doesn't make the SQL taught in this course SQL-Server-only knowledge, though. The CREATE TABLE statement, the PRIMARY KEY and FOREIGN KEY constraints, and the INSERT, SELECT, UPDATE, and DELETE statements covered in Lesson 2 would all run against PostgreSQL or MySQL with little more than minor syntax differences, mainly around how each system auto-generates primary key values. The relational concepts transfer; only some of the exact syntax around them changes from one system to the next.

There's also a practical, deployment-shaped reason behind this choice worth naming directly. A connection string like the one Lesson 1 introduced, "Server=localhost;Database=VirtualBookShelfDb;Trusted_Connection=True;...", points at a local SQL Server instance during development, but that same ADO.NET connection code, unchanged, can point at a SQL Server instance hosted on Azure once a finished Razor Pages application is ready to go live. PostgreSQL and MySQL both have their own solid cloud-hosting stories, including on Azure itself, but SQL Server's path from a developer's own machine to a production Azure deployment is the most direct one available inside Microsoft's own ecosystem, which is the ecosystem this entire course stack already lives in.

A Few Common Questions

Could VirtualBookShelf's Customer and Inventory tables be built in PostgreSQL or MySQL instead of SQL Server? Yes, with only minor changes. The column names, data types, and constraints would stay almost identical; the main difference is how each system auto-generates a primary key value. SQL Server uses IDENTITY(1,1), PostgreSQL uses a SERIAL or GENERATED column, and MySQL uses AUTO_INCREMENT. The underlying idea, letting the database assign the next identifier automatically, is identical across all three.

Is Microsoft Access just a toy, not worth learning? No, it's a legitimate tool for what it's built for: a small, mostly single-user application where a full client-server database would be overkill. It's simply the wrong fit for this course's goals, since VirtualBookShelf needs to support multiple concurrent web visitors, which is exactly the kind of workload Access was never designed to handle.

Why not use a NoSQL database like MongoDB instead of a relational system? Lesson 1 touched on this briefly: document-oriented databases like MongoDB can be a good fit when records genuinely don't share a consistent shape, but that flexibility comes at the cost of the relational model's built-in foreign-key enforcement covered in Lesson 2. VirtualBookShelf's customers, books, and the relationships between them are exactly the kind of structured, interrelated data the relational model was built for.

If a real project later switched database systems, would all the application's SQL need to be rewritten? Less than it might seem, especially with Entity Framework Core in the picture. EF Core is built around swappable database providers; a well-structured application can often switch from SQL Server to PostgreSQL by changing its EF Core provider and connection string, with far less rewriting than an application built directly on raw, system-specific SQL throughout.

Is SQL Server always an expensive, enterprise-only product? Not for learning purposes. SQL Server's free Developer edition is fully featured and intended exactly for this kind of work, which is why VirtualBookShelf never has to confront a licensing decision during this course. The cost conversation becomes real only once an organization moves a finished application into production at a scale where Developer edition's licensing terms no longer apply, a decision well beyond the scope of this course's project.

Why does the comparison table above include Microsoft Access at all, if this course never builds anything with it? Because it's useful to see what VirtualBookShelf's requirements rule out, not just what they rule in. Access would be perfectly adequate for a single person tracking their own personal book collection on their own computer; it simply can't do what an online bookstore with multiple simultaneous visitors needs. Seeing exactly where that line falls makes the case for a client-server database like SQL Server concrete rather than assumed.

Does a bigger, more expensive database system always mean better performance? Not automatically. Oracle Database's raw scalability doesn't help an application whose own table design is poor, and a badly indexed table on an expensive enterprise system can easily be outperformed by a well-designed table on a free one. The table structure discipline covered in Lesson 2, correct data types, a reliable primary key, matters more to real-world performance than which logo happens to be on the database server.

Is it realistic to switch a course project like VirtualBookShelf from SQL Server to something else later, just to see the difference? Yes, and it's a genuinely useful exercise once the basics are solid. The CREATE TABLE statement for Customer from Lesson 2 would need only small adjustments, swapping IDENTITY(1,1) for PostgreSQL's identity-column syntax, for instance, to run on a different system entirely. Trying that kind of migration by hand is one of the better ways to see firsthand which parts of this course's SQL knowledge are genuinely portable and which parts are specific to SQL Server.

What's Ahead

This lesson compared five database systems side by side, SQL Server 2025, PostgreSQL, MySQL, Oracle Database, and Microsoft Access, and explained why this course builds on SQL Server specifically. The next lesson in this module turns to the technologies that actually connect a Razor Pages application to whichever database system sits behind it: ADO.NET, Entity Framework Core, and ODBC, the access layers Lesson 1 named briefly and this module now examines in depth.

SEMrush Software 3 SEMrush Banner 3