| Lesson 7 | SSMS to Administer SQL Server 2025 |
| Objective | Use SQL Server Management Studio to administer SQL Server 2025 |
SQL Server Management Studio (SSMS) 22 is the primary integrated environment for administering all components of a SQL Server 2025 infrastructure. It replaces the legacy Enterprise Manager that was discontinued in SQL Server 2005 and provides a unified graphical interface for connecting to SQL Server instances, managing databases and security objects, writing and executing T-SQL, monitoring performance, scheduling jobs through SQL Server Agent, and accessing SQL Server 2025-specific features including native JSON tooling and vector data type support. This lesson covers how to install SSMS 22, connect to a SQL Server 2025 instance, and perform the core administration tasks required throughout this course.
SSMS 22 is distributed separately from the SQL Server 2025 installer and must be downloaded and installed
independently. The current release as of March 2026 is SSMS 22.4.1. Download it from
https://aka.ms/ssms or from the Microsoft Learn Install SSMS page.
The installer filename is vs_SSMS.exe — it uses the Visual Studio Installer experience.
SSMS 22 system requirements and installation notes:
Launch SSMS 22 from the Start menu. The Connect to Server dialog opens automatically on first launch. Configure the connection as follows:
. or (local)
for the default local instance, .\SQLEXPRESS for a local Express named instance,
YourServerName for a remote default instance, or YourServerName\InstanceName
for a remote named instance. To connect on a non-default port, use
YourServerName,PortNumber.If the connection fails, verify the following in SQL Server Configuration Manager: the Database Engine service is in a Running state; TCP/IP protocol is enabled under SQL Server Network Configuration; and TCP port 1433 is permitted through the Windows Firewall. For named instances, confirm SQL Server Browser is running.
Once connected, the Object Explorer in the left pane displays the full hierarchy of objects managed by the SQL Server 2025 instance. The top-level nodes and their administrative functions are:
sysadmin, securityadmin, or dbcreator.Databases can be created through the SSMS graphical interface or through T-SQL in the Query Editor. Both methods produce identical results — the GUI generates T-SQL internally and executes it against the server.
Using the GUI:
CREATE DATABASE statement and the
new database appears under the Databases nodeUsing T-SQL in the Query Editor:
-- Create the course project database with explicit file placement
CREATE DATABASE TimesheetDB
ON PRIMARY (
NAME = TimesheetData,
FILENAME = 'C:\SQLData\TimesheetData.mdf',
SIZE = 10MB,
MAXSIZE = 500MB,
FILEGROWTH = 64MB
)
LOG ON (
NAME = TimesheetLog,
FILENAME = 'C:\SQLData\TimesheetLog.ldf',
SIZE = 5MB,
MAXSIZE = 100MB,
FILEGROWTH = 32MB
);
GO
After execution, press F5 or click Refresh in Object Explorer to see the new database. The
FILEGROWTH value of 64MB for data files and 32MB for log files reflects SQL Server
2025 best practice — autogrowth events in fixed MB increments rather than percentage-based growth,
which produces unpredictable file sizes on large databases.
Tables are created under a specific database. Expand the target database in Object Explorer,
right-click the Tables folder, and select New Table to open the
Table Designer. Define column names, data types, nullability, and primary key constraints through
the graphical grid. In SQL Server 2025, the Table Designer supports the new VECTOR
data type alongside traditional types.
The T-SQL equivalent for the course project Employees table:
USE TimesheetDB;
GO
CREATE TABLE Employees (
Employee_ID INT NOT NULL PRIMARY KEY,
Full_Name NVARCHAR(100) NOT NULL,
Department_Code CHAR(4) NOT NULL,
Hourly_Rate DECIMAL(10,2) NOT NULL DEFAULT 0.00
);
GO
Click New Query in the SSMS toolbar or press Ctrl+N to open a Query Editor window. The Query Editor provides IntelliSense code completion, syntax highlighting, execution plan visualization, and live query statistics. Key Query Editor features in SSMS 22:
FOR JSON output and JSON column data.-- Execute a basic query against the course project database
USE TimesheetDB;
GO
SELECT Employee_ID, Full_Name, Department_Code, Hourly_Rate
FROM Employees
ORDER BY Full_Name;
GO
Server-level security is managed under the Security node in Object Explorer. Database-level security is managed under the Security folder within each database. Common security administration tasks:
db_datareader, db_datawriter, or db_owner.Activity Monitor provides real-time visibility into SQL Server instance health. Open it by expanding Management in Object Explorer and double-clicking Activity Monitor, or by right-clicking the server name and selecting Activity Monitor. The five Activity Monitor panels display:
| Task | Location in SSMS 22 |
| Connect to a SQL Server instance | File → Connect Object Explorer, or the Connect to Server dialog on launch |
| Create a new database | Object Explorer → right-click Databases → New Database |
| Write and execute T-SQL | Toolbar → New Query (Ctrl+N), then F5 to execute |
| View execution plan | Query Editor → Ctrl+L (estimated) or Ctrl+M then F5 (actual) |
| Create a login or user | Security → right-click Logins → New Login |
| Backup or restore a database | Right-click database → Tasks → Backup or Restore |
| Monitor active sessions and waits | Management → Activity Monitor |
| Configure server properties | Right-click server name → Properties |
| Schedule automated jobs | SQL Server Agent → right-click Jobs → New Job |
| View SQL Server error log | Management → SQL Server Logs → double-click Current |
Azure Data Studio is a cross-platform database tool — available on Windows, macOS, and Linux —
that complements SSMS 22 for specific workflows. While SSMS 22 remains the primary tool for
full SQL Server administration, Azure Data Studio is preferred for notebook-based query
documentation, cross-platform development on macOS or Linux, and PostgreSQL or MySQL connections
from the same tool. In SQL Server 2025 environments, Azure Data Studio notebooks are particularly
useful for documenting VECTOR_DISTANCE queries and AI workload experiments alongside
their results in a single shareable file.
SSMS 22 replaces the legacy Enterprise Manager as the primary administration tool for SQL Server 2025. It provides Object Explorer for hierarchical navigation of server objects, a Query Editor with IntelliSense and execution plan visualization, Activity Monitor for real-time performance diagnostics, and administration dialogs for database creation, security management, backup and restore, and SQL Server Agent job scheduling. SSMS 22 adds SQL Server 2025-specific capabilities including the JSON viewer, vector data type support in the Table Designer, and a GitHub Copilot preview for natural-language T-SQL assistance. Azure Data Studio complements SSMS 22 for cross-platform and notebook-based workflows. The next lesson covers using the Query Editor to write and execute T-SQL statements in detail.