Part-1 Exam 70-764 Administering a SQL Database Infrastructure
Live Lectures - 1 to 15
Administering a SQL Database Infrastructure MOC 20764-C course imparts skills and knowledge to manage and maintain SQL Server databases while operating on a SQL database infrastructure. This Microsoft SQL Server 2016 Training is for individuals who are responsible for administering SQL databases or who develop applications that extract content from SQL server DB. SQL Database Infrastructure course will teach candidates various aspects of operating a SQL database, including authentication, ensuring integrity and security of data, managing permissions to access resources, importing and exporting data, backup and restore among others.
Lecture 1: SQL Server Security
Live Lecture
Protection of data within your Microsoft SQL Server databases is essential and requires a working knowledge of the issues and SQL Server security features. This Lecture describes SQL Server security models, logins, users, partially contained databases, and cross-server authorization.
· Lessons
· Authenticating Connections to SQL Server
· Authorizing Logins to Connect to databases
· Authorization Across Servers
· Partially Contained Databases
· Lab : Authenticating Users
· Create Logins
· Create Database Users
· Correct Application Login Issues
· Configure Security for Restored Databases
· After completing this Lecture, you will be able to:
· SQL Server basic concepts.
· SQL Server connection authentication.
· User login authorization to databases.
· Partially contained databases.
· Authorization across servers.
Lecture 2: Assigning Server and Database Roles
Live Lecture
Using roles simplifies the management of user permissions. With roles, you can control authenticated users’ access to system resources based on each user’s job function—rather than assigning permissions user-by-user, you can grant permissions to a role, then make users members of roles. Microsoft SQL Server includes support for security roles defined at server level and at database level.
· Lessons
· Working with server roles
· Working with Fixed Database Roles
· Assigning User-Defined Database Roles
· Lab : Assigning server and database roles
· Assigning Server Roles
· Assigning Fixed Database Roles
· Assigning User-Defined Database Roles
· Verifying Security
· After completing this Lecture, you will be able to:
· Describe and use server roles to manage server-level security.
· Describe and use fixed database roles.
· Use custom database roles to manage database-level security.
· Use application roles to manage database-level security.
Lecture 3: Authorizing Users to Access Resources
Live Lecture
In the previous Lectures, you have seen how Microsoft SQL Server security is organized and how sets of permissions can be assigned at the server and database level by using fixed server roles, user-defined server roles, fixed database roles, and application roles. The final step in authorizing users to access SQL Server resources is the authorization of users and roles to access server and database objects. In this Lecture, you will see how these object permissions are managed. In addition to access permissions on database objects, SQL Server provides the ability to determine which users are allowed to execute code, such as stored procedures and functions. In many cases, these permissions and the permissions on the database objects are best configured at the schema level rather than at the level of the individual object. Schema-based permission grants can simplify your security architecture. You will explore the granting of permissions at the schema level in the final lesson of this Lecture.
· Lessons
· Authorizing User Access to Objects
· Authorizing Users to Execute Code
· Configuring Permissions at the Schema Level
· Lab : Authorizing users to access resources
· Granting, Denying, and Revoking Permissions on Objects
· Granting EXECUTE Permissions on Code
· Granting Permissions at the Schema Level
· After completing this Lecture, you will be able to:
· Authorize user access to objects.
· Authorize users to execute code.
· Configure permissions at the schema level.
Lecture 4: Protecting Data with Encryption and Auditing
Live Lecture
When configuring security for your Microsoft SQL Server systems, you should ensure that you meet any of your organization’s compliance requirements for data protection. Organizations often need to adhere to industry-specific compliance policies, which mandate auditing of all data access. To address this requirement, SQL Server provides a range of options for implementing auditing. Another common compliance requirement is the encryption of data to protect against unauthorized access in the event that access to the database files is compromised. SQL Server supports this requirement by providing transparent data encryption (TDE). To reduce the risk of information leakage by users with administrative access to a database, columns containing sensitive data—such as credit card numbers or national identity numbers—can be encrypted using the Always Encrypted feature. This Lecture describes the available options for auditing in SQL Server, how to use and manage the SQL Server Audit feature, and how to implement encryption.
· Lessons
· Options for auditing data access in SQL Server
· Implementing SQL Server Audit
· Managing SQL Server Audit
· Protecting Data with Encryption
· Lab : Using Auditing and Encryption
· Working with SQL Server Audit
· Encrypt a Column as Always Encrypted
· Encrypt a Database using TDE
· After completing this Lecture, you will be able to:
· Describe the options for auditing data access.
· Implement SQL Server Audit.
· Manage SQL Server Audit.
· Describe & implement methods of encrypting data in SQL Server.
· Implement encryption
Lecture 5: Recovery Models and Backup Strategies
Live Lecture
One of the most important aspects of a database administrator's role is ensuring that organizational data is reliably backed up so that, if a failure occurs, you can recover the data. Even though the computing industry has known about the need for reliable backup strategies for decades—and discussed this at great length—unfortunate stories regarding data loss are still commonplace. A further problem is that, even when the strategies in place work as they were designed, the outcomes still regularly fail to meet an organization’s operational requirements. In this Lecture, you will consider how to create a strategy that is aligned with organizational needs, based on the available backup models, and the role of the transaction logs in maintaining database consistency.
· Lessons
· Understanding Backup Strategies
· SQL Server Transaction Logs
· Planning Backup Strategies
· Lab : Understanding SQL Server recovery models
· Plan a Backup Strategy
· Configure Database Recovery Models
· After completing this Lecture, you will be able to:
· Describe various backup strategies.
· Describe how database transaction logs function.
· Plan SQL Server backup strategies.
Lecture 6: Backing Up SQL Server Databases
Live Lecture
In the previous Lecture, you learned how to plan a backup strategy for a SQL Server system. You can now learn how to perform SQL Server backups, including full and differential database backups, transaction log backups, and partial backups. In this Lecture, you will learn how to apply various backup strategies.
· Lessons
· Backing Up Databases and Transaction Logs
· Managing Database Backups
· Advanced Database Options
· Lab : Backing Up Databases
· Backing Up Databases
· Performing Database, Differential, and Transaction Log Backups
· Performing a Partial Backup
· After completing this Lecture, you will be able to:
· Perform backups of SQL Server databases and transaction logs.
· Manage database backups.
· Describe advanced backup options.
Lecture 7: Restoring SQL Server 2016 Databases
Live Leture
In the previous Lecture, you learned how to create backups of Microsoft SQL Server 2016 databases. A backup strategy might involve many different types of backup, so it is essential that you can effectively restore them. You will often be restoring a database in an urgent situation. You must, however, ensure that you have a clear plan of how to proceed and successfully recover the database to the required state. A good plan and understanding of the restore process can help avoid making the situation worse. Some database restores are related to system failure. In these cases, you will want to return the system as close as possible to the state it was in before the failure. Some failures, though, are related to human error and you might wish to recover the system to a point before that error. The point-in-time recovery features of SQL Server 2016 can help you to achieve this. Because they are typically much larger, user databases are more likely to be affected by system failures than system databases. However, system databases can be affected by failures, and special care should be taken when recovering them. In particular, you need to understand how to recover each system database because you cannot use the same process for all system databases. In this Lecture, you will see how to restore user and system databases and how to implement point-in-time recovery.
· Lessons
· Understanding the Restore Process
· Restoring Databases
· Advanced Restore Scenarios
· Point-in-Time Recovery
· Lab : Restoring SQL Server Databases
· Restoring a Database Backup
· Restring Database, Differential & Transaction Log Backups
· Performing a Piecemeal Restore
· After completing this Lecture, you will be able to:
· Explain the restore process.
· Restore databases.
· Perform advanced restore operations.
· Perform a point-in-time recovery.
Lecture 8: Automating SQL Server Management
Live Lecture
The tools provided by Microsoft SQL Server make administration easy when compared to some other database engines. However, even when tasks are easy to perform, it is common to have to repeat a task many times. Efficient database administrators learn to automate repetitive tasks. This can help to avoid situations where an administrator forgets to execute a task at the required time. Perhaps more importantly, the automation of tasks helps to ensure that they are performed consistently, each time they are executed. This Lecture describes how to use SQL Server Agent to automate jobs, how to configure security contexts for jobs, and how to implement multiserver jobs.
· Lessons
· Automating SQL Server management
· Working with SQL Server Agent
· Managing SQL Server Agent Jobs
· Multi-server Management
· Lab : Automating SQL Server Management
· Create a SQL Server Agent Job
· Test a Job
· Schedule a Job
· Configure Master and Target Servers
· After completing this Lecture, you will be able to
· Describe methods for automating SQL Server Management.
· Configure jobs, job step types, and schedules.
· Manage SQL Server Agent jobs.
· Configure master and target servers.
Lecture 9: Configuring Security for SQL Server Agent
Live Lecture
Other Lectures in this course have demonstrated the need to minimize the permissions that are granted to users, following the principle of “least privilege.” This means that users have only the permissions that they need to perform their tasks. The same logic applies to the granting of permissions to SQL Server Agent. Although it is easy to execute all jobs in the context of the SQL Server Agent service account, and to configure that account as an administrative account, a poor security environment would result from doing this. It is important to understand how to create a minimal privilege security environment for jobs that run in SQL Server Agent.
· Lessons
· Understanding SQL Server Agent Security
· Configuring Credentials
· Configuring Proxy Accounts
· Lab : Configuring Security for SQL Server Agent
· Analyzing Problems in SQL Server Agent
· Configuring a Credential
· Configuring a Proxy Account
· Configuring and testing the Security Context of a Job
· After completing this Lecture, you will be able to:
· Explain SQL Server Agent security.
· Configure credentials.
· Configure proxy accounts.
Lecture 10: Monitoring SQL Server with Alerts and Notifications
Live Lecture
One key aspect of managing Microsoft SQL Server in a proactive manner is to make sure you are aware of problems and events that occur in the server, as they happen. SQL Server logs a wealth of information about issues. You can configure it to advise you automatically when these issues occur, by using alerts and notifications. The most common way that SQL Server database administrators receive details of events of interest is by email message. This Lecture covers the configuration of Database Mail, alerts, and notifications for a SQL Server instance, and the configuration of alerts for Microsoft Azure SQL Database.
· Lessons
· Monitoring SQL Server Errors
· Configuring Database Mail
· Operators, Alerts, and Notifications
· Alerts in Azure SQL Database
· Lab : Monitoring SQL Server with Alerts and Notifications
· Configuring Database Mail
· Configuring Operators
· Configuring Alerts and Notifications
· Testing Alerts and Notifications
· After completing this Lecture, you will be able to:
· Monitor SQL Server errors.
· Configure database mail.
· Configure operators, alerts, and notifications.
· Work with alerts in Azure SQL Database.
Lecture 11: Managing SQL Server by using PowerShell
Live Lecture
This Lecture looks at how to use Windows PowerShell with Microsoft SQL Server. Businesses are constantly having to increase the efficiency and reliability of maintaining their IT infrastructure; with PowerShell, you can improve this efficiency and reliability by creating scripts to carry out tasks. PowerShell scripts can be tested and applied multiple times to multiple servers, saving your organization both time and money.
· Lessons
· Getting Started with Windows PowerShell
· Configure SQL Server using PowerShell
· Administer and Maintain SQL Server with PowerShell
· Managing Azure SQL Databases using PowerShell
· Lab : Using PowerShell to Manage SQL Server
· Getting Started with PowerShell
· Using PowerShell to Change SQL Server settings
· After completing this Lecture, you will be able to:
· Describe the benefits of PowerShell & its fundamental concepts.
· Configure SQL Server by using PowerShell.
· Administer and maintain SQL Server by using PowerShell.
· Manage an Azure SQL Database by using PowerShell.
Lecture 12: Tracing Access to SQL Server with Extended events
Live Lecture
Monitoring performance metrics provides a great way to assess the overall performance of a database solution. However, there are occasions when you need to perform more detailed analysis of the activity occurring within a Microsoft SQL Server instance—to troubleshoot problems and identify ways to optimize workload performance. SQL Server Extended Events is a flexible, lightweight event-handling system built into the Microsoft SQL Server Database Engine. This Lecture focuses on the architectural concepts, troubleshooting strategies and usage scenarios of Extended Events.
· Lessons
· Extended Events Core Concepts
· Working with Extended Events
· Lab : Extended Events
· Using the System Health Extended Events Session
· Tracking Page Splits Using Extended Events
· After completing this Lecture, you will be able to:
· Describe Extended Events core concepts.
· Create and query Extended Events sessions.
Lecture 13: Monitoring SQL Server
Live Lecture
The Microsoft SQL Server Database Engine can run for long periods without the need for administrative attention. However, if you regularly monitor the activity that occurs on the database server, you can deal with potential issues before they arise. SQL Server provides a number of tools that you can use to monitor current activity and record details of previous activity. You need to become familiar with what each of the tools does and how to use them. It is easy to become overwhelmed by the volume of output that monitoring tools can provide, so you also need to learn techniques for analyzing their output.
· Lessons
· Monitoring activity
· Capturing and Managing Performance Data
· Analyzing Collected Performance Data
· SQL Server Utility
· Lab : Monitoring SQL Server
· After completing this Lecture, you will be able to:
· Monitor current activity.
· Capture and manage performance data.
· Analyze collected performance data.
· Configure SQL Server Utility.
Lecture 14: Troubleshooting SQL Server
Live Lecture
Database administrators working with Microsoft SQL Server need to adopt the important role of troubleshooter when issues arise—particularly if users of business-critical applications that rely on SQL Server databases are being prevented from working. It is important to have a solid methodology for resolving issues in general, and to be familiar with the most common issues that can arise when working with SQL Server systems.
· Lessons
· A Trouble Shooting Methodology for SQL Server
· Resolving Service Related Issues
· Resolving Connectivity and Log-in issues
· Lab : Troubleshooting Common Issues
· Troubleshoot and Resolve a SQL Login Issue
· Troubleshoot and Resolve a Service Issue
· Troubleshoot and Resolve a Windows Login Issue
· Troubleshoot and Resolve a Job Execution Issue
· Troubleshoot and Resolve a Performance Issue
· After completing this Lecture, you will be able to:
· Describe a troubleshooting methodology for SQL Server.
· Resolve service-related issues.
· Resolve login and connectivity issues.
Lecture 15: Importing and Exporting Data
Live Lecture
While a great deal of data residing in a Microsoft SQL Server system is entered directly by users who are running application programs, there is often a need to move data in other locations, to and from SQL Server. SQL Server provides a set of tools you can use to transfer data in and out. Some of these tools, such as the bcp (Bulk Copy Program) utility and SQL Server Integration Services, are external to the database engine. Other tools, such as the BULK INSERT statement and the OPENROWSET function, are implemented in the database engine. With SQL Server, you can also create data-tier applications that package all the tables, views, and instance objects associated with a user database into a single unit of deployment. In this Lecture, you will explore these tools and techniques so that you can import and export data to and from SQL Server.
· Lessons
· Transferring Data to and from SQL Server
· Importing and Exporting Table Data
· Using bcp and BULK INSERT to Import Data
· Deploying and Upgrading Data-Tier Application
· Lab : Importing and Exporting Data
· Import and Excel Data Using the Import Wizard
· Import a Delimited Text File Using bcp
· Import a Delimited Text File using BULK INSERT
· Create and Test an SSIS Package to Extract Data
· Deploy a Data-Tier Application
· After completing this Lecture, you will be able to:
· Describe tools and techniques for transferring data.
· Import and export table data.
· Use bcp and BULK INSERT to import data.
· Use data-tier applications to import & export applications.
Part-2 Exam 70-765: Provisioning SQL Databases
Live Lectures - 16 to 25
The Provisioning SQL Databases training at Koenig aims to impart skills and knowledge to provision and manage a Microsoft SQL Server 2016 database. The SQL Server 2016 course covers provisioning on both Azure and on-premise. It will also familiarize participants with conducting new installations and migrations to the latest version from an existing older one. This SQL Server 2016 training on Provisioning is ideal for professionals who manage, maintain and administer SQL Server databases in enterprise environments. This course is also suitable for professionals who are into application development where content is sourced from SQL Server databases.
Lecture 16: SQL Server Components
Live Lecture
This Lecture describes the various SQL Server components and versions.
· Lessons
· Introduction to the SQL Server Platform
· Overview of SQL Server Architecture
· SQL Server Services and Configuration Options
· After completing this Lecture, you will be able to:
· Describe SQL Server components and versions.
· Describe SQL Server architecture and resource usage.
· Describe SQL Server services.
Lecture 17: Installing SQL Server
Live Lecture
This Lectures describes the process to install SQL Server 2016.
· Lessons
· Considerations for SQL Installing Server
· TempDB Files
· Installing SQL Server
· Automating Installation
· Lab : Installing SQL Server
· Preparing to install SQL Server
· Install an instance of SQL Server
· Perform post installation checks
· Automating Installation
· After completing this Lecture, you will be able to:
· Describe the considerations when installing SQL Server.
· Describe TempDB files.
· Install SQL Server.
· Automate a SQL Server installation.
Lecture 18: Upgrading SQL Server to SQL Server 2017
Live Lecture
This Lecture describes the process for upgrading to SQL Server 2017.
· Lessons
· Upgrade Requirements
· Upgrade SQL Server Services
· Side by Side Upgrade: Migrating SQL Server Data & Applications
· Lab : Upgrading SQL Server
· Create the Application Logins
· Restore the backups of the TSQL Database
· Orphaned Users and Database Compatibility Level
· After completing this Lecture, you will be able to:
· Describe the upgrade requirements for SQL Server.
· Upgrade SQL Server.
· Migrate SQL Server data and applications.
Lecture 19: Working with Databases
Live Lecture
This Lecture describes the preinstalled system databases, the physical structure of databases and the most common configuration options related to them.
· Lessons
· Introduction to Data Storage with SQL Server
· Managing Storage for System Databases
· Managing Storage for User Databases
· Moving and Copying Database Files
· Buffer Pool Extension
· Lab : Managing Database Storage
· Configuring tempdb Storage
· Creating Databases
· Attaching a Database
· Enable Buffer Pool Extension
· After completing this Lecture, you will be able to:
· Describe Data Storage with SQL Server.
· Manage Storage for System Databases.
· Manage Storage for User Databases.
· Move and Copy Database Files.
· Describe and use Buffer Pool Extensions.
Lecture 20: Performing Database Maintenance
Live Lecture
This Lecture covers database maintenance plans.
· Lessons
· Ensuring Database Integrity
· Maintaining Indexes
· Automating Routine Database Maintenance
· Lab : Performing Database Maintenance
· Use DBCC CHECKDB to Verify Database Integrity
· Rebuild Indexes
· Create a Database Maintenance Plan
· After completing this Lecture, you will be able to:
· Ensure Database Integrity.
· Maintain Indexes.
· Automate Routine Database Maintenance.
Lecture 21: Database Storage Options
Live Lecture
Describe SQL Server storage options.
· Lessons
· SQL Server storage Performance
· SMB Fileshare
· SQL Server Storage in Microsoft Azure
· Stretch Databases
· Lab : Implementing Stretch Database
· Run Stretch Database Advisor
· Implement Stretch Database
· After completing this Lecture, you will be able to:
· Describe SQL Server Storage Performance.
· Describe SMB Fileshare.
· Explain SQL Server Storage in Microsoft Azure.
· Describe Stretch Database.
Lecture 22: Planning to Deploy SQL Server on Microsoft Azure
Live Lecture
This Lecture describes how to plan to deploy SQL Server on Azure.
· Lessons
· SQL Server Virtual Machines in Azure
· Azure Storage
· Azure SQL Authentication
· Deploying an Azure SQL Database
· Lab : Plan and Deploy an Azure SQL Database
· Plan an Azure SQL Database and Networking.
· Plan a performance tiers and security.
· Provision an Azure SQL Database
· Connect to an Azure SQL Database
· After completing this Lecture, you will be able to:
· Describe SQL Server Virtual Machines in Azure.
· Describe Azure Storage.
· Explain Azure SQL Authentication, auditing and compliance.
· Deploy an Azure SQL Database.
Lecture 23: Migrating Databases to Azure SQL Database
Live Lecture
This Lecture describes how to migrate databases to Azure SQL Database.
· Lessons
· Database Migration Testing Tools
· Database Migration Compatibility Issues
· Migrating a SQL Server Database to Azure SQL Database
· Lab : Migrating SQL Server Databases to Azure
· Perform Migration Testing
· Migrate a SQL Server Database to Azure SQL Database
· Test a Migrated Database
· After completing this Lecture, students will be able to:
· Describe various database migration testing tools.
· Explain database migration compatibility issues.
· Migrate a SQL Server database to Azure SQL database.
Lecture 24: Deploying SQL Server on a Microsoft Azure VM
Live Lecture
This Lecture describes how to deploy SQL Server on Microsoft Azure VMs.
· Lessons
· Deploying SQL Server on an Azure VM
· The Deploy Database to a Microsoft Azure VM Wizard
· Lab : Deploying SQL Server on an Azure Virtual Machine
· Provision an Azure VM
· Use the Deploy Database to Azure VM Wizard
· After completing this Lecture, students will be able to:
· Deploy SQL Server on an Azure VM.
· Use The Deploy Database to a Microsoft Azure VM Wizard.
· Configure SQL Server Connections
Lecture 25: Managing databases in the Cloud
Live Lecture
This Lecture describes how to manage SQL Server on Azure.
· Lessons
· Managing Azure SQL Database Security
· Configure Azure storage
· Azure Automation
· Lab : Managing Databases in the Cloud
· Add data masking
· Use Azure automation to stop Virtual Machines
· After completing this Lecture, students will be able to:
· Manage Azure SQL Database Security.
· Configure Azure storage.
· Implement Azure Automation.