LearnAI ToolsCareerPractice BuildsPlayContact
Lesson 120 min read

Introduction to SQL Server

Learn what Microsoft SQL Server is, how T-SQL extends standard SQL, and which edition you should use for learning and production.

Introduction

If you have ever worked at a company running on Windows infrastructure, used a .NET application, or built a report in Power BI, there is a very good chance a Microsoft SQL Server database was sitting quietly behind the scenes. SQL Server is one of the most widely deployed relational database systems in the enterprise world, powering everything from small business inventory systems to the transactional backbone of global banks. This course teaches you SQL Server from the ground up, starting with installation and finishing with real, production-style T-SQL.

What You Will Learn
  • What SQL Server is and where it fits in the Microsoft data ecosystem.
  • What makes T-SQL different from generic SQL.
  • The different editions of SQL Server and which one to install for this course.
  • How to read your very first T-SQL query and its result set.

What is SQL Server?

Microsoft SQL Server is a relational database management system (RDBMS) developed by Microsoft. Like other RDBMS products (MySQL, PostgreSQL, Oracle), it stores data in tables made of rows and columns, and it enforces relationships between those tables using keys. What sets SQL Server apart is its deep integration with the Microsoft ecosystem: Windows Server, Active Directory, .NET, Azure, and business intelligence tools like SQL Server Reporting Services (SSRS) and Power BI all connect naturally to it.

SQL Server is not just a place to store rows of data. It ships with a query optimizer, a security and permissions engine, backup and recovery tooling, a job scheduler (SQL Server Agent), and support for advanced features such as full-text search, in-memory tables, and JSON handling. For this course, you will focus on the core relational engine and the T-SQL language used to talk to it.

Relational Engine

Stores data in structured tables with enforced relationships between them.

Windows-Native

Deeply integrated with Windows authentication, services, and the .NET ecosystem.

Cloud-Ready

Available on-premises, in Docker, or fully managed as Azure SQL Database.

BI-Friendly

Pairs naturally with Power BI, SSRS, and SQL Server Integration Services (SSIS).

What is T-SQL?

SQL Server speaks a dialect of SQL called Transact-SQL, or T-SQL. T-SQL implements the standard SQL you may already know — SELECT, INSERT, UPDATE, DELETE — but adds procedural extensions on top: variables, IF/WHILE control flow, TRY/CATCH error handling, stored procedures, and functions. This means T-SQL is not just for asking questions of your data; it is a full programming language for writing logic that runs directly inside the database engine.

Throughout this course, every code example is real T-SQL that you can paste directly into SQL Server Management Studio (SSMS) and run against your own local database.

SQL Server Editions

Microsoft ships SQL Server in several editions, aimed at different budgets and workloads. You do not need to memorize every difference, but you should know the names, because they come up constantly in job postings and documentation.

EditionCostTypical Use
ExpressFreeLearning, small apps, up to 10 GB per database
DeveloperFreeFull Enterprise feature set, for development/testing only — not production
StandardPaidSmall-to-medium production workloads
EnterprisePaid (highest tier)Large-scale, mission-critical production systems
Azure SQL DatabasePay-as-you-goFully managed cloud database, no server to maintain
Which Edition Should You Install?

For this course, install SQL Server Express (completely free, no license required) or SQL Server Developer Edition (also free, and includes every Enterprise feature for local learning). Both work identically for everything you will write in T-SQL here.

A First Look at T-SQL

You do not need a running SQL Server instance yet to read this — later lessons walk through installation step by step. For now, just get a feel for what T-SQL looks like. Here is a simple query against a hypothetical Employees table.

SELECT FirstName, LastName, Department, Salary
FROM Employees
WHERE Salary >= 60000
ORDER BY Salary DESC;
Result

Click Run to see what this code prints.

If that looks familiar from other databases, that's intentional — SQL Server's SELECT syntax follows the ANSI SQL standard closely. The differences show up as you go deeper: T-SQL uses TOP instead of LIMIT, GETDATE() instead of NOW(), and IDENTITY instead of AUTO_INCREMENT. You will meet all of these in later lessons.

Common Mistakes

Avoid These Mistakes
  • Confusing SQL Server (the database engine) with SSMS (the free tool used to connect to it) — they are separate downloads.
  • Assuming SQL Server only runs on Windows — it has run natively on Linux and in Docker containers since SQL Server 2017.
  • Installing the paid Standard/Enterprise trial when Express or Developer edition is free and sufficient for learning.
  • Thinking T-SQL and standard SQL are two unrelated languages — T-SQL is SQL plus procedural extensions, not a replacement for it.

Best Practices

  • Install SQL Server Developer Edition locally so you have the full feature set to practice with, at no cost.
  • Get comfortable reading the Messages tab in SSMS, not just the Results grid — errors and row counts show up there.
  • Bookmark Microsoft Learn's T-SQL reference; you will refer back to it constantly.
  • Type out every example in this course yourself rather than only reading it — muscle memory matters for a language like SQL.

Frequently Asked Questions

Yes, for learning and non-production use. SQL Server Express and Developer Edition are both free downloads. Standard and Enterprise editions require a paid license for production deployments.

No. Since SQL Server 2017, Microsoft ships native Linux builds and official Docker images, so you can run SQL Server on Windows, Linux, or in a container.

They are both dialects of SQL and share the same core SELECT/INSERT/UPDATE/DELETE syntax, but many details differ — for example T-SQL uses TOP where MySQL uses LIMIT, and NVARCHAR where MySQL typically uses VARCHAR for Unicode-safe text.

No. SQL Server and T-SQL are independent of any particular application language. Knowing .NET helps later if you connect an application to SQL Server, but this course assumes no prior .NET knowledge.

Key Takeaways

  • SQL Server is Microsoft's relational database management system, tightly integrated with Windows, .NET, and Azure.
  • T-SQL is SQL Server's SQL dialect — standard SQL plus procedural extensions like variables and control flow.
  • Express and Developer editions are both free and are exactly what you need for this course.
  • SQL Server runs on Windows, Linux, and in Docker containers.

Summary

You now know what SQL Server is, what T-SQL is, and which free edition to install. In the next lesson, you'll look at where SQL Server came from and how its editions evolved over more than three decades of development.

Next Lesson →

History & Editions of SQL Server