
Explore essential on-premises SQL Server database administration, including backup and restore for point-in-time recovery, managing logins and server roles, optimizing with indexes, and automating tasks with SQL Server Agent.
Explore how to navigate the Udemy interface, adjust playback speed and volume, use subtitles and full-screen mode, access course content, notes, Q&A, announcements, ratings, and download your certificate.
Explore the official SQL Server database administration curriculum for 70-462, with a hands-on focus on backup strategies, restoring databases, and practical tasks from install to high availability.
Learn how to download SQL Server Developer Edition 2022, choose between basic and custom installations, explore licensing and editions, and review hardware requirements for 64-bit systems.
Follow this step-by-step walkthrough to install SQL Server Developer 2022 via the installation centre, selecting the Developer edition, Database Engine Services, and Windows authentication, adding your user as administrator.
Install and configure SQL Server Management Studio (SSMS) to manage SQL Server databases, download latest GA version, manage versions, and connect to default or local instances, handling certificate trust issues.
Download and install the AdventureWorks demo database using SSMS, connect to the engine, and use the 2014 .bak file for the DBA-focused setup.
Learn how to restore a sql server database from a backup by selecting the source, adding a file, configuring the destination, and reviewing point-in-time timelines.
Explore sql server management studio navigation, switch databases, and convert graphical user interface actions to t-sql code, including restore commands, tables, views, and stored procedures.
The video demonstrates backing up an AdventureWorks database, editing data via the GUI, and restoring the backup after an in-use error, illustrating why backups matter.
Explore recovery models in SQL Server, compare simple, full, and bulk-logged options, understand transaction log implications, and learn how to switch models via SSMS or ALTER DATABASE scripts.
Explore how full, differential, and transaction log backups work together to reduce data loss and system load, including bulk logged recoveries and hourly backup strategies.
Change the recovery model from simple to full in SQL Server Management Studio, then perform full and transaction log backups, observe differential backups, and note sizes and restoration implications.
Learn how to perform point in time recovery using a full backup, differential, and all transaction log backups, including tail log backups, in the full or bulk logged recovery models.
Discover how norecovery and recovery control database accessibility during restores, including tail-log backups and multi-step restores, and learn when to apply each to keep the source databases safe.
Identify the system databases in SQL Server and their backup roles. Back up master, model, and MSDB, note the resource database, and skip tempdb.
Explore backup strategies for SQL Server databases, including full, differential, and transaction log backups, test restores, checksums, and copy-only options for redundancy.
Verify backups before restoring and recover from corrupted media with continue after error or no recovery; run dbcc checkdb and repair with data loss if needed, then restore to multi-user.
Master the distinction between logins and users, create a Windows-authenticated login, map it to a specific database, and review the corresponding T-SQL script.
Manage SQL Server access by assigning a login to fixed server roles like sysadmin and dbcreator, using script or graphical tools, while enforcing minimal permissions.
Create and manage user-defined server roles to grant or deny permissions on securables, add members like SQLTest, and learn that deny overrides grant and with grant enables delegation.
Create a database user mapped to a login in AdventureWorks2014, set a default schema, and explore user types, before assigning roles and permissions in a follow-up step.
Explore the nine fixed database roles, including db_owner, db_securityadmin, and datareader. Learn how grants and denials affect permissions, and how to assign members safely to avoid escalation.
Create and manage database roles inside a database, assign members, and grant or deny permissions on securables such as tables (select, insert, update, execute), with examples like humanresources.department and employee.
Create and manage schemas, assign owners, and apply authorization to strengthen security through ownership chaining across procedures, views, and tables.
Demonstrates least-privilege access using fixed server roles, permissions assigned to roles, and schema-level grants; explains grant, deny, revoke, and how ownership chains influence access through stored procedures and objects.
Denying permissions protects a table from modification; set denies on alter, control, delete, insert, and update for a user or role, ensuring deny trumps grant for production.culture.
Learn how indexes improve query efficiency by using clustered indexes to physically sort unique keys and non-clustered indexes to reference data, including includes and maintenance trade-offs.
Learn how to implement clustered and non-clustered indexes in SSMS by creating a new table, adding key columns, scripting the index, and using include columns and drop options.
Explore how index fragmentation arises when pages split and items move, and learn how reorganise and rebuild address it to optimize performance and space.
Learn online index maintenance in SSMS by rebuilding or reorganizing with ALTER INDEX, guided by fragmentation analysis from dm_db_index_physical_stats; apply thresholds: >30% rebuild, 5–29.99% reorganize.
Discover how fill factor leaves space on leaf level pages to accommodate new items, by setting leaf level pages to 80% (or 70%), and applying this via SSMS or T-SQL.
Optimize SQL server indexes by using filtered indexes that cover only the needed rows, such as city = London or city is null, reducing update and query times.
Identify unused indexes using index usage statistics with sys.dm_db_index_usage_stats and sys.indexes. Disable or drop those with little or no seeks, scans, or lookups to reduce maintenance.
Understand how statistics reveal column data distribution to SQL Server, guiding the engine toward seeks or scans. Learn about auto create statistics and creating full or filtered statistics.
Explore data transfer techniques in SQL Server, including backup and restore, detach and attach, and the import and export wizard for importing and exporting flat files.
Learn bulk insert as an alternative to the import and export wizard for flat files. Create a table and load data using field terminator, row terminator, and first row options.
Enable SQL Server Agent and create a full backup job at midnight using steps and a recurring schedule, with T-SQL scripts and logging to MSDB.
Discover how to administer SQL Server Agent jobs using the job activity monitor, MSDB queries, and TSQL. Learn to view, start, disable, edit steps and schedules, and track job history.
Raise custom alerts with RAISERROR by adding a message (error 50001, severity 16, state 1) in sys.messages and trigger a SQL Server Agent response, such as a backup or operator notification.
Watch how a SQL Server Agent job runs and is monitored, then raise a raiserror with log to trigger an alert and verify it in the job history.
Enable database mail and configure smtp profiles and accounts for SQL Server Agent alerts. Link an operator to alerts to email on job completion, whether it succeeds or fails.
Configure SQL server alerts for critical conditions, including performance counters and user thresholds, notify by email when 11 or more users connect, and explore WMI event alerts.
Configure and standardize databases by applying auto close, auto shrink, and recovery model settings via the model database for new databases, and avoid auto close and auto shrink.
Learn how primary, log, and secondary data files form filegroups in SQL Server and how distributing data across disks improves performance while keeping system and user data separate.
Learn to create a SQL Server database with primary and secondary file groups, multiple files (MDF, NDF, LDF), and autogrowth settings, and configure recovery and compatibility options.
Add new files and filegroups, set the default filegroup, and move tables via clustered indexes between filegroups using GUI and T-SQL.
Learn how to partition a table using a partition function and partition scheme across file groups, enabling year-based data separation and faster queries with indexed year/date fields.
Learn to implement partitioning in SQL Server using the GUI and T-SQL, creating a partition function and partition scheme that map a date column to filegroups (primary, secondary, third).
Define and apply t-sql partitioning by creating a partition function and scheme, assign values to range right or left, and implement on a clustered index to speed queries.
Master multi-terabyte backups by targeting specific file groups or files instead of the whole database, then restore with file-group restores using full, differential, and transaction log backups.
Monitor log space usage with sys.dm_db_log_space_usage, shrink with dbcc shrinkfile, add extra log files on separate disks, and rely on transaction log backups to truncate the log.
Explore dbcc, the database console commands for maintenance, information gathering, and validation, including shrink database to reclaim free space and inspect file sizes with sys.database_files.
learn to implement partially contained databases to avoid orphaned logins when moving databases between SQL Server instances, enabling password-based database users and appropriate permissions for portability.
explore how page compression combines row, prefix, and dictionary methods to shrink data, weigh cpu overhead, and apply or estimate savings via scripts.
Save storage by using sparse columns for mostly-null fields; note non-null values use more space; apply when 40–60% nulls, via table design or t-sql.
Discover non-clustered columnstore indexes, which compress data up to ten times and can improve query performance two to four times, ideal for scanning large tables.
Identify and resolve concurrency problems by understanding update, exclusive, and shared locks, blocking, live locking, and deadlocking in SQL Server.
Demonstrate how transactions and locks cause blocking and deadlocks in SQL Server, and practice diagnosing them with SP_WHO2 and the Activity Monitor.
Monitor SQL Server with dynamic management views like sys.dm_tran_locks and dm_exec_requests to diagnose waits such as LCK_M_S and analyze lock types (S, X, IX).
Examine deadlocking with permanent trace flags 1204 and 1222 using DBCC, view and export SQL Server logs, view XML deadlock details, and analyze SPIDs to identify the victim.
Diagnose SQL Server performance issues using DMVs like dm_os_schedulers and dm_os_buffer_descriptors to assess CPU, memory, and disk I/O. Monitor buffer cache hit ratio, buffer manager pages, and page life expectancy.
Learn to use SQL Server Profiler in SSMS to capture and analyze T-SQL statements, deadlocks, and performance data, then save traces to file or table and inspect deadlock graphs.
Learn how Extended Events replaces SQL Server Profiler with lightweight, live data capture, including templates, session setup, filtering, and event fields for deadlocks and SQL transactions.
Learn to use system monitor (perfmon) to collect SQL Server performance data, enable disk performance counters with diskperf -Y, and create data collector sets.
Identify io, memory, and cpu bottlenecks by examining counters such as memory available bytes, memory pages/sec, cache hit ratio, pages in the buffer pool, and average disc seconds read/write.
Please note: Microsoft has withdrawn the 70-462 exam. However, the information in this course is still relevant to DBA.
Do you want to gain practical experience in Database Administration in SQL Server? Welcome.
In this course, learn some of the skills that Microsoft want you to know, and add another tool to your CV or resume, and even go for the official Microsoft certification.
Please note: This course is not affiliated with, endorsed by, or sponsored by Microsoft.
SQL Server is one of the main database tools that is requested in the job market, and the ability to being able to do DBA for SQL Server could be very useful for your current work, and your next job hunt.
We'll download and install for free SQL Server Developer, which gives you all of the capabilities of the full-cost Enterprise edition (though without being able to use it for commercial purposes). We'll start by downloading a demonstration database, and learning how to backup and restore this database, and what recovery models are appropriate for other databases, to enable you to offer Point in Time recovery.
We'll manage logins and server roles, so you can control who gets access to what data, implement and maintain indexes, so you can speed up searches, and import and export data. We'll look at managing SQL Server Agent, so you can automate routine tasks, and also be alerted to problems, we'll manage and configure databases, and look at compression, both of which aids with administrating big databases. And much more.
The course will take around 10 hours to complete, but completing this will enable you to versed in Database Administration tasks, giving you hands-on experience.
The course increases in difficulty slowly, so you'll manually backup a database, but then later we'll use SQL Server Agent to automate this. In this course, we will only do activities that require one computer, instead of multiple servers or virtualization.
The course is fairly relaxed - there will be a few "wrong turns", so you can see what problems might arise, but every lesson works towards an end goal at a relatively slow pace, so you can follow on your own computer easily. I assume that you know how to use a computer, including installing programs, but the actual DBA will be at a basic level, and I'll introduce every component as we go on.
No knowledge of T-SQL is required, as I'll demonstrate everything I can through the GUI (Graphical User Interface) as well as T-SQL. However, if you are going to go for the official Microsoft exam, the equivalent knowledge as per my first two courses in 70-461 T-SQL is essential.
At the end of the course, you can download a certificate of completion, so you can show everyone your new-found skills, and continue your preparations for the official Microsoft certifications.
The course is recorded on SQL Server 2017, but will also work fully in 2022, 2019, 2016, 2014 and 2012, and mostly in 2008R2 and 2008.