MS SQL Lesson 3 – What is MS SQL Server | Dataplexa

What Is MS SQL Server

What Is MS SQL Server?

Microsoft SQL Server is a relational database management system built and maintained by Microsoft. It stores, retrieves, and manages structured data using T-SQL (Transact-SQL) — Microsoft's extension of the ANSI SQL standard. First released in 1989, it has grown into one of the most widely deployed enterprise database platforms in the world.

SQL Server is not just a storage engine — it is a complete data platform. It ships with built-in tools for reporting, data integration, analytics, high availability, security, and cloud connectivity. Whether you are running a small internal app or a global system processing millions of transactions per second, SQL Server has an edition and feature set designed for that workload.

  • Stores data in tables with enforced schemas and relationships — the full relational model
  • Queried and managed using T-SQL — a superset of standard ANSI SQL
  • Runs on Windows, Linux, Docker containers, and Azure cloud
  • Used across banking, healthcare, retail, logistics, and government
  • Deeply integrated with Azure, Power BI, .NET, Excel, and Active Directory

A Brief History

SQL Server started as a joint product between Microsoft, Sybase, and Ashton-Tate in the late 1980s. It ran on OS/2 and was a port of Sybase SQL Server. Microsoft and Sybase split in the early 1990s, and from version 6.0 onwards Microsoft developed SQL Server independently — building it into the enterprise platform it is today.

Version Year Key Milestone
SQL Server 1.0 1989 First release — joint product with Sybase, ran on OS/2
SQL Server 6.5 1996 First fully independent Microsoft build — major performance improvements
SQL Server 2000 2000 XML support, full-text search, widespread enterprise adoption
SQL Server 2005 2005 CLR integration, Service Broker, database mirroring
SQL Server 2012 2012 Always On Availability Groups — major high availability leap
SQL Server 2016 2016 Row-level security, JSON support, in-memory OLTP improvements
SQL Server 2017 2017 First version to run on Linux and Docker containers
SQL Server 2019 2019 Big Data Clusters, Accelerated Database Recovery, Java extensibility
SQL Server 2022 2022 Azure Synapse Link, ledger tables, improved intelligent query processing

The Database Engine

The Database Engine is the heart of SQL Server — the service that stores, processes, and secures all data. When you run a T-SQL query, the engine receives it, checks the syntax, builds an execution plan, retrieves the data from memory or disk, and sends the result back — all in milliseconds.

It also manages transactions, enforces ACID guarantees, coordinates locking so concurrent users never corrupt each other's data, and writes every change to a transaction log before touching the data files — so recovery is always possible after a crash.

  • Query Parser — checks T-SQL syntax and builds an internal parse tree
  • Query Optimiser — evaluates many execution strategies and picks the most efficient one
  • Storage Engine — reads and writes data files (.mdf, .ndf) and the transaction log (.ldf)
  • Buffer Manager — caches hot data pages in memory to avoid slow disk reads
  • Lock Manager — coordinates concurrent access to prevent data corruption

T-SQL — Microsoft's SQL Dialect

T-SQL (Transact-SQL) is Microsoft's extension of ANSI SQL. It includes all standard SQL commands — SELECT, INSERT, UPDATE, DELETE, JOIN — and adds procedural programming features that turn it into a full server-side language. You can declare variables, write conditional logic, loop through results, handle errors, and package reusable logic into stored procedures and functions — all running inside the database engine itself.

-- T-SQL goes beyond standard SQL with procedural features.
-- Here are three capabilities standard SQL does not have.
-- 1. Variables — store a value and reuse it
DECLARE @Greeting NVARCHAR(100);        -- declare the variable
SET     @Greeting = 'Welcome to SQL Server!'; -- assign a value
PRINT   @Greeting;                      -- output it to the messages pane
-- 2. Conditional logic — IF / ELSE branching
DECLARE @OrderCount INT = 142;          -- simulate an order count
IF @OrderCount > 100
    PRINT 'High volume day.';           -- runs when condition is true
ELSE
    PRINT 'Normal volume.';             -- runs when condition is false
-- 3. CAST() — convert one data type to another
-- Here we turn an integer into text so we can concatenate it
PRINT 'Total orders today: ' + CAST(@OrderCount AS NVARCHAR);
Welcome to SQL Server!
High volume day.
Total orders today: 142
  • DECLARE creates a variable — @ prefix is required for all T-SQL variables
  • SET assigns a value to the variable — you can also assign inline with DECLARE @x INT = 5
  • IF / ELSE works exactly like in any programming language — only one branch executes
  • PRINT sends a message to the Messages tab in SSMS — useful for debugging
  • CAST() converts a value to a different data type — here INT to NVARCHAR for string concatenation

SQL Server Services and Components

SQL Server ships as a suite of optional services beyond the core Database Engine. For development and learning — which covers everything in this course — only the Database Engine is needed. The additional services become relevant when you move into enterprise analytics, reporting pipelines, and scheduled automation.

Component What It Does Typical Use Case
Database Engine Core service — stores, retrieves, and manages relational data Every application that uses SQL Server
SQL Server Agent Schedules and automates jobs — backups, maintenance, alerts Nightly backups, index rebuilds, failure email alerts
SSRS Reporting Services — builds and delivers paginated reports Scheduled PDF sales reports emailed to management
SSIS Integration Services — ETL pipelines for moving and transforming data Loading CSV or API data into SQL Server nightly
SSAS Analysis Services — OLAP cubes and tabular data models Multi-dimensional analytics, Power BI tabular models
Full-Text Search Fast linguistic search across large text columns Searching product descriptions or customer reviews
Machine Learning Services Run R and Python scripts directly inside SQL Server Predictive models and anomaly detection on live data

MS SQL Server vs Other Relational Databases

SQL Server's main competitors are Oracle Database, MySQL, and PostgreSQL. Each dominates in different environments. SQL Server is strongest in enterprise Windows and Microsoft stack deployments — organisations already using Azure, Power BI, .NET, or Active Directory.

Feature MS SQL Server MySQL PostgreSQL
Owner Microsoft Oracle Open source community
Licence Commercial (free Developer & Express editions) Open source (GPL) + commercial Fully open source
Platform Windows, Linux, Docker, Azure Windows, Linux, macOS Windows, Linux, macOS
GUI Tool SSMS, Azure Data Studio MySQL Workbench pgAdmin
Best For Enterprise Windows / Microsoft stack Web apps, LAMP stack Complex queries, open-source projects
Cloud Managed Azure SQL Database, Azure SQL Managed Instance Amazon RDS, Azure Database for MySQL Amazon RDS, Azure Database for PostgreSQL

Why Learn MS SQL Server?

SQL Server consistently ranks in the top three most-used database systems globally. Its market share is strongest in enterprise and corporate environments, making T-SQL one of the highest-paying database skills in data engineering, software development, and business intelligence careers.

T-SQL is closely aligned with ANSI SQL — skills transfer directly to MySQL and PostgreSQL with only minor syntax differences. Mastering SQL Server gives you a strong foundation for every relational database.

  • Top-three most deployed database system worldwide by usage
  • T-SQL skills transfer readily to MySQL, PostgreSQL, and Oracle
  • Central to Microsoft BI stack — Power BI, SSRS, Azure Synapse
  • Free Developer Edition includes every Enterprise feature for learning
  • Microsoft certifications DP-300 and DP-900 are globally recognised

Lesson Summary

Concept What It Means Quick Example
MS SQL Server Microsoft's enterprise relational database management system First released 1989, latest version SQL Server 2022
T-SQL Transact-SQL — Microsoft's procedural extension of ANSI SQL DECLARE, IF, WHILE, PRINT, CAST()
Database Engine The core SQL Server service — stores, processes, and secures all data Handles all queries, transactions, locking, and recovery
Query Optimiser Engine component that picks the most efficient execution plan Decides whether to use an index or scan the full table
Transaction Log File that records every change before it is written to data files .ldf file — enables crash recovery
SSMS SQL Server Management Studio — free GUI for querying and managing SQL Server Write queries, browse objects, view execution plans
SSRS SQL Server Reporting Services — paginated report delivery Scheduled PDF reports emailed to management
SSIS SQL Server Integration Services — ETL data pipelines Loading CSV files or API data into SQL Server nightly
SSAS SQL Server Analysis Services — OLAP cubes and tabular models Power BI tabular models and multidimensional analytics
Azure SQL Fully managed cloud version of SQL Server on Microsoft Azure No server to manage — Microsoft handles patching and backups

Practice Questions

Practice 1. What does T-SQL stand for?



Practice 2. In what year was the first version of MS SQL Server released?



Practice 3. Which SQL Server component schedules and automates jobs such as nightly backups?



Practice 4. What T-SQL keyword declares a variable?



Practice 5. What is the name of the free GUI tool used to write queries and manage SQL Server?



Quiz

Quiz 1. Which SQL Server version was the first to run on Linux?






Quiz 2. What does the SQL Server Query Optimiser do?






Quiz 3. Which SQL Server service builds ETL pipelines to move and transform data between systems?






Quiz 4. What is the purpose of the SQL Server transaction log file?






Quiz 5. Which cloud service provides a fully managed version of SQL Server with no server administration?






Next up — SQL Server Editions and Usecases — The different editions available and how to choose the right one for your project.