Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
SQL Server Administration Part 2
Rating: 4.7 out of 5(3,604 ratings)
19,454 students

SQL Server Administration Part 2

Learn how to optimize, improve performance, review and analysis statistics, use monitoring tools, and create indexes
Created byRaphael Asghar
Last updated 8/2018
English
English [Auto],Spanish [Auto],

What you'll learn

  • At the end of SQL Administration Part 2, the student will be able to create indexes for to gain performance, use the SQL Profiler to find and trouble shoot expensive queries, use the activity monitor for analysis, deploy the performance monitor to find specific about SQL Server internals, use DTA utility, create and investigate issues with DMVs and extended events, look at SQL logs, monitor the health of the SQL Server more efficiently and much more.

Course content

1 section49 lectures10h 12m total length
  • Introduction6:28

    Raphael introduces part two by outlining SQL Server performance and maintenance tools, covering installation, indexing, profiling, monitoring, blocking prevention, and topics like snapshots, partitioning, and linked servers.

  • Install SQL Server 21414:40

    Understand what an index is and its types. Create indexes with SQL and GUI; know when not to use them; tune with SQL Profiler, Database Tuning Advisor, and monitor fragmentation.

  • Install SQL Suite11:20

    Install the Redgate SQL Data Generator from the SQL Developer Suite, create a test database, and populate it with 50 million rows for indexing.

  • POST ADDENDUM8:11

    Compare SQL Server 2014 and 2017 to show that core administration principles apply across versions 12, 14, 16 to 17, while noting Linux support and new features in 17.

  • APPS NEEDED7:34

    Acquire and organize six essential tools for a production SQL database setup: VirtualBox with extension pack, Windows Server 2016 ISO, SQL Server, SSMS, AdventureWorks database, and Visual Studio.

  • CREATE VM18:22

    Create a new virtual machine with VirtualBox, install a Windows 64-bit OS, allocate memory and 50 GB disk, and install SQL Server 2017. Enable hypervisor and install guest additions.

  • INSTALL SQL SERVER 20179:43

    Install sql server 2017 in a virtual machine, set up a shared folder, and run setup to install the evaluation edition with defaults. Then install ssms for management.

  • ADVENTUREWORKS 2017 DB8:13

    Install SQL Server and SSMS, then restore the AdventureWorks 2017 database in a virtualized environment, connect to SQL Server, and compare interfaces across versions.

  • COMPARISON SQL SERVER 2014 VS 20172:38

    Compare SQL Server 2014 and 2017, showing similar front-end interfaces and how scripts from prior Learn SQL courses apply to 2017, with guidance to update AdventureWorks references to 2017.

  • Clustered Index16:59

    Explore how clustered indexes sort table data to speed data retrieval, highlighting why a table has at most one clustered index, and comparing heaps with non-clustered options.

  • Create non cluster index12:07

    Create non-clustered indexes to speed data retrieval with a separate index structure that does not reorder data; unlike clustered indexes, they can be multiple but consume extra space.

  • Composite Index18:06

    Explore how to create a composite index using two or more columns, like last name and first name, and learn the benefits for faster data retrieval.

  • Use or not use indexes11:20

    Explore when to use indexes in SQL Server, weighing table scans versus clustered and non-clustered indexes, and learn how data size and query patterns drive indexing decisions.

  • Deciding factors in creating indexes20:09

    Explore when to create indexes by balancing table size, usage frequency, and where clause patterns, and learn how single, composite, clustered, and non-clustered indexes affect testing, cardinality, and performance.

  • using sql profler for indexes19:41

    Learn to use SQL profiler traces to identify indexing needs and analyze queries. Apply the database engine tuning advisor to recommend cluster and non-clustered indexes and validate improvements.

  • Reorganize and Rebuild Indexes15:47

    Learn how to manage index fragmentation in SQL Server by choosing reorganize or rebuild based on fragmentation thresholds of 5–30%, and apply online or offline maintenance techniques.

  • Into To SQL Profiler17:57

    Learn to use SQL profiler to monitor SQL Server events, capture statements and stored procedures, and save traces to files or tables for performance analysis and auditing.

  • SQL Profiler longest running query13:37

    Use SQL profiler to identify the longest running queries in production. Filter by duration, then analyze and save results to a table for tuning.

  • Audit logins12:11

    Use SQL profiler as an audit tool to monitor logins and connections for security, and learn to create mixed-mode logins, run audits, and adjust user permissions.

  • SQL Profile with Index Tuning10:40

    Use SQL profiler to tune indexes with a tuning template, create user-defined templates, and generate workloads for the database tuning advisor to optimize last name and first name indexes.

  • SQL Profiler Best Practice5:24

    Learn best practices for using SQL profiler to monitor a single database. Include descriptive trace names, event selection, column filtering, saving to file, and minimizing data capture.

  • SQL Server Side Trace16:31

    Replace the SQL profiler with a server side trace to capture data on the server, reducing resource use and network traffic. Automate traces with T-SQL and SQL Agent.

  • Database Engine Tuning Advisor12:10

    Analyze the workload with the database tuning advisor to receive recommendations on indexes, statistics, and partitioning, then apply or save changes to improve performance.

  • Statistics11:44

    Learn how SQL Server statistics describe data distribution and guide the query optimizer to choose the best data retrieval path, and how statistics are automatically created, updated, and viewed.

  • Activity Monitor14:01

    Learn to monitor SQL Server performance with Activity Monitor and database management views to identify bottlenecks, view expensive queries, and terminate problematic processes.

  • SQL Performance Monitor16:24

    Leverage the Windows Performance Monitor (PerfMon) to capture SQL Server metrics, create baselines, and monitor memory, processor, disk, and network counters for performance health.

  • SQL Performance hardware issues12:49

    Learn to monitor hardware resource utilization with perfmon, identify bottlenecks in CPU, memory, disk, and network, and tune hardware or queries to optimize SQL Server performance.

  • SQL Performance Monitoring Hardware CPU16:47

    Identify CPU performance indicators and establish baselines using performance counters, monitor processor time and processor queue length, and tune queries and indexing before hardware upgrades.

  • SQL Performance Monitoring Hardware memory10:10

    Explore memory monitoring in SQL Server using counters such as available megabytes, page set, page faults per second, and buffer cache hit ratio.

  • SQL Performance Monitoring Hardware disks8:46

    Monitor SQL Server disk performance with Performance Monitor, focusing on average seconds per read and average seconds per write to detect bottlenecks across physical and total disks.

  • 23 SQL Perfmon scehdule8:51

    Learn to schedule SQL Server performance monitoring with data collector sets, add counters, and generate daily or weekly reports for diagnostics.

  • DMV13:53

    Learn to use dynamic management views and functions to monitor SQL Server health, diagnose performance issues, and tune performance, with DMVs categorized by group and database or server scope.

  • Block and Locks13:15

    Explore locks, blocking, and deadlocks in production SQL databases and learn how to monitor, avoid, and resolve blocking with practical techniques.

  • BLOCKING10:45

    Explore blocking in SQL Server, including exclusive locks, and how begin tran, commit, and rollback control transactions while tracking blocking by spid.

  • Deadlock4:45

    Learn to capture and view deadlocks graphically with SQL Profiler, configure deadlock graph events, trigger a deadlock with two transactions, and identify the victim SPID and lock modes.

  • Extended Events18:20

    Discover extended events in SQL Server, a GUI-based tool that replaces SQL Profiler. Create sessions and packages to monitor long running queries, blocking, and memory with minimal overhead.

  • Extended Events via TSQL11:59

    Explore building extended events with T-SQL, defining events, actions, predicates, and targets, and compare it to the wizard approach for production SQL database administration.

  • Database Snapshots15:12

    Create a database snapshot to view a read-only, point-in-time copy of the source database using copy-on-write at the data page level; not a backup, it supports reporting and data restoration.

  • Import Export Data10:01

    Learn to migrate data between SQL Server instances with the import and export wizard, choosing full table transfers or partial data via a custom query.

  • BCP12:59

    Learn how to use the bulk copy program (BCP) to export and import data between SQL Server and flat files, using command-line switches and batch files.

  • Partition19:51

    Explore table partitioning to divide large tables into smaller file groups, map data with a partition function and scheme, and improve performance, archiving, and maintenance.

  • Partition part 219:51

    Partition part 2 demonstrates partitioning a large table by year, creating file groups and data files, and mapping data to partitions with T-SQL.

  • Partition 312:46

    Demonstrate partitioning a table using a GUI, create and map file groups on drives D and E, and define a partition function by year 2005–2007 for a production table.

  • Contained datababase Part 111:47

    Explore contained databases, self contained with their own configurations and metadata, enabling movement without SQL logins, and note partially contained limitations like no replication or change data capture.

  • Contained datababase Part 210:12

    Explore contained databases in SQL Server, preventing orphaned logins by migrating data with partial containment, creating users within the database, and securely connecting to the contained database only.

  • Policy Based Management18:46

    Explore policy based management to enforce enterprise standards on SQL Server, using facets and conditions to find auto shrink and turn it off, and to prevent noncompliant stored procedures.

  • Linked Servers8:20

    Learn to create and use linked servers to access data from another SQL Server or other platforms via ODBC, enabling cross-server queries for reporting and production databases.

  • SQL server and agent logs5:24

    Learn to access and analyze sql server error logs and sql agent logs using the graphical user interface or sp_read_error_log to troubleshoot issues and filter by log type and keywords.

  • SQL ADMINISTRATION PART 35:32

    Learn high availability and disaster recovery for production SQL databases, covering two-node clustering, log shipping, database mirroring, Always On availability groups, replication, and domain setup.

Requirements

  • All the student needs is a laptop or a desktop. All material where appropriate will be downloaded via internet. Plus, you will need as a pre-requisite SQL Administration Part 1. All scripts and documentation will be provided by me to the student via zip file.

Description

SQL Administration Part 2 will benefit the student by providing the necessary guide lines for enhancing SQL Server performance by utilizing indexes, reviewing DMVs for analysis, and setting up performance counters for gathering resource metrics; and also I will explain a handful of utilities to gather information about SQL Server internals, such as SQL Profiler, Database Tuning Advisor (DTA), Extended Events, SQL performance monitor, Activity monitor, and teach about partitions, creating contained database for recovery, reviewing SQL server logs and by installing SQL Server 2014 as the newer SQL version.The student will not only add to the knowledge gained bur SQL Administration Part 1, but get prepared for the next course SQL Administration Part 3 – the high availability solutions.

Who this course is for:

  • Student who are interested in managing SQL Server, Developers, IT Admins, System Admins and anyone who is responsible for the databases.