PowerShell Scripting and Automation for SQL Server DBA

Automation, Automation using PowerShell, PowerShell Scripting for SQL Server Database Administrator, PowerShell for SQL

  • 0.0 (0 Reviews)
  • 0 Students
  • 113 Lessons
  • Rajesh J

Course Overview

In this course you will get in depth knowledge of PowerShell after that you will be able to develop the script using PowerShell easily.

Basically, this course has been divided in to 20 sessions/Module which include the HTML Session, Evendu you will find the others additional session in this course, which will be the subcategory of the main course. For Sub-category you have to go through each Module.

I am going to provide and discussed total 100+ script, you can download and start doing the practice after each session.

I will be frequently uploading the video. For doubt clarification I will provide my email so that you can send me mail for any doubt.

This course has designed in such a way that anyone having the basic knowledge of DBA, they can easily learn and develop the script using PowerShell for SQL DBA at the end of this course.



In this session will cover that how to start writing the PowerShell script from basic to advance level. It will be going to include Daily DBA Task like - Backup, Restore, how to script the Database objects, creating and scheduling SQL Job in Single or Multiple servers. Running the script in multiple servers, BCP IN and BCP out, how to schedule the script using task scheduler or SQL Agent and many more things. How to pass the parameter using config file, creating own module ETC.

Standard way of writing the script.

1. Generating log file for any script.

2. Ping the server.

3. Passing multiple parameters using single configuration file.

4. Creating function in script

5. Displaying the result in color

6. Adding the time stamp in log file.

7. Setting the variable

8. Registry level of information


Monitoring / Generating Report

In this session we are going to work on SQL Server Monitoring Part and Generating and sending the alert/Notification using email in HTML body or as attachments. As per below screen shot

This report has been generated for Database file usage as HTML body.

We are going to learn that how to generate the Health check report and monitoring the many things.

a. Monitoring like Database data files and log file space.

b. Disk space monitoring for single of multiple of servers.

c. CPU or Ram usage monitoring.

d. Long running job, Blocking, Deadlock etc

e. Creating report for Backup status.

f. Job Failed status report.

g. Sending the alert/Notification if any services will be down.


· HTML


a. Basic of HTML

b. Static and Dynamic HTML Report

c. How customize the HTML report and adding some comment.

d. Sending email in the format of HTML body using PowerShell.

· Cloud (Going to be Uploaded very Soon)

a. Basic of Azure Cloud

b. How to develop the PowerShell scripts for AZURE cloud.



See more

FAQ

FAQ area empty

Course curriculum

22 chương 113 bài học 37 giờ 35 phút 7 bài học thử miễn phí
Chương 1 Module 1
Chương 2 Module 2
  • ExecutionPolicy 17:17
  • How to Send email from PowerShell 36:22
  • How to use Pipe and format the result in PowerShell 21:01
Chương 3 Module 3
  • Operator in PowerShell 50:15
  • PowerShell Loop - if , if else, ifelseif 5:08
  • For-each and For-Eachobject 20:57
  • For, Do While , Do Until Loop 15:18
  • Switch Loop 4:18
  • Template of Ps1 (PowerShell Script) 19:38
Chương 4 Module 4
  • START OF PROGRAM - Start All sql server services 26:04
  • V1.Start the SQL Service for Named and Default Instance 8:08
  • V2 Adding Log file in Programing 20:26
  • V3 Programing for Stopping services and Adding Log file 13:48
  • V4 Programing for Starting services and Adding Log file 7:04
  • V5 and V6 Programing - Function creation for log file 15:34
  • V7. If log file is not available it will not give any error 9:49
  • V8 Programing - Adding wrong server its throwing error 15:12
  • V9 Adding wrong host in and error got fixed 25:08
  • V10 Fixed the Named Instance issue 25:40
  • V11 If Server is cluster - Script will not perform any activities 13:42
  • V12 Display the result in color for starting or filed 13:32
  • V13 How to make path as constant 35:49
  • V14 Programing - Constant Path_Creating_Log_Folder 17:23
  • V15 Programing - Adding File stamp in logfile 14:48
  • V16 Adding Timestamp inside the log file 13:24
  • V17 Adding Transcript Error 23:53
Chương 5 Module 5
  • How to get Current Path 35:59
Chương 6 Module 6
  • How to get all service pack Details using PowerShell 9:18
Chương 7 Module 7
  • Connect SQL server using PowerShell and Pass the Parameter using config file 22:34
Chương 8 Module 8
  • PowerShell with SQL Server 41:58
  • How to Import Module 40:42
  • How to develop programing using SMO 36:52
  • Connect SQL server using Cmdlt and run a SQL script 15:46
  • How to run multiple of script in single server 16:21
  • How to Zip and Unzip using PowerShell 9:09
Chương 9 Module 9
  • SMO Object Model - With Example 25:24
  • How change Server or Database configuration using SMO 17:12
  • Fixed the WMI error in PowerShell 3:02
  • Read SQL server errorlog and Service Account using SMO 15:28
Chương 10 Module 10
  • How to change service account and password using SMO 11:16
Chương 11 Module 11
  • Array in PowerShell 10:59
  • Array Hands-On 42:21
  • How to Script out any SQL Object using PowerShell 23:02
  • How to Perform SQL Operation using SMO in Powershell 25:31
  • Database Property using SMO 5:59
  • Connect SQL Server with SQL Authentication using PowerShell SMO and cmdlet 7:52
  • How to run SQL Script for Multiple of servers for each database 8:13
  • How to found SQL Jobs Failed Jobs using PowerShell 6:55
  • Send All failed job report in email using HTML format 7:34
  • Create failed job report in HTML or Notpad 3:59
  • How to write SQL Script in PowerShell 2:47
  • How to send failed job HTML Report at attachment 6:38
Chương 12 Module 12
  • SQL Server Database Backup 39:39
  • How to Pass multiple of parameter using single file 16:37
  • How to work on Backup Path which is hardcoded 15:02
  • Database Restore Using PowerShell 5:11
  • SQL Server Failed Job report 14:31
  • How to Insert SQL data using BCP (in and BCP_out) 10:34
Chương 13 Module 13
  • Exception Handling with Try and Catch 32:12
  • WMIObject With Example 17:26
  • How to Create PowerShell Module 9:36
  • How to generate Disk Space HTML Report using PowerShell 41:38
  • Measure-Object Example with PowerShell 6:42
Chương 14 Module 14
  • DBAtools 57:37
  • How to install DBA Tools Without Internet or Offline 14:38
Chương 15 Module 15
  • How to Run or Schedule PowerShell Script using SQL Agent 33:23
  • How to run PowerShell using Task Scheduler 8:51
  • SQL Server Migration with DBA Tools 25:55
  • SQL Backup Using SQL Agent JOB 38:12
Chương 16 Module 16 - HTML
  • HTML Basic 1 1:08:33
  • HTML Basic 2 35:34
  • HTML Basic 3 11:03
  • HTML Table 40:20
  • How to Create HTML Report using Powershell5 39:26
  • How to send email as HTML Body 19:49
  • Disk Status HTML Report5 41:47
  • SQL Server Database Space Report in Excel using DBA Tools 35:20
  • SQL Server Database Space Report in HTML using DBA Tools 8:44
  • SQL Server Database Space Report in HTML Color format using DBA Tools 12:13
Chương 17 Module 17
  • Script for DBA Tools with Parameter 16:41
  • Understanding PowerShell function / parameter 36:37
Chương 18 Module 18
  • How to monitor Blocking using Eventvwr 10:33
  • Working with Eventvwr using PowerShell 36:23
Chương 19 Module 19
  • Advance Function and Common Parameters 1:18:24
  • Script to finding SQL Authentication Mode for Multiple of server 7:20
  • Report for Failed Login using PowerShell 7:40
  • Kill the session if any blocking happened - automate using PowerShell 6:27
  • Login Information 3:10
  • Writing Blocking Information to eventvwr for multiple of server with Try $ Catch 7:41
Chương 20 Module 20
  • Check fragment of Index using PowerShell script 8:52
  • How to create SQL Job using PowerShell Script 14:18
  • How to do Rebuilt or Reorg of Index using PowerShell Script 7:36
  • How to Execute SQL Job using PowerShell 4:16
  • How to schedule a Job Using PowerShell 8:28
  • HTML Backup report for those database backup not happened from past 12 hrs. 19:29
  • HTML Backup report for those database backup not happened from past 12 hrs. - P2 2:21
  • HTML Report for DB Owner - Multiple Servers 5:29
  • HTML Report for DB Owner - Single Server 7:08
Chương 21 Module 21
  • Global and Local Variable in Powershell 14:39
Chương 22 Play With Powershell
  • Text to Speek in Powershell 21:42

Requirment

  • No Prior PowerShell Knowledge is required. You will learn everything you need to know.

  • Need Knowledge on SQL server DBA concepts

  • No Prior HTML Knowledge is required. You will learn everything you need to know.

  • No Prior SQL Programming Knowledge is required. You will learn everything you need to know.

  • Eagerness to learn PowerShell Scripting

Outcomes

  • Learn PowerShell Scripting for SQL Server Database Administrator from scratch and fulfill their own dream for automation

  • Learn about Automation Using PowerShell for SQL server DBA daily task.

  • In this course you will get in depth knowledge of PowerShell after that you will be able to develop the script using PowerShell easily.

  • You will get total 100+ scripts, you can download and start doing the practice after each session.

  • Frequently uploading the video. For doubt clarification I will provide my email so that you can send me mail for any doubt.

  • Learn about PowerShell, Automation, scripting, Creating HTML Reporting with Color format!...

  • Acclerate about your career to becomes the future-ready Automation Engineer for SQL Server database administrator

  • Create HTML Report for SQL DBA Task and sent in email

  • HTML Reporting Using PowerShell

  • Automation Using Powershell Script for AZURE/Cloud SQL Server DBA

  • This course has designed in such a way that anyone having the basic knowledge of DBA, they can easily learn and develop PowerShell script at the end of course.

Instructor

...
Rajesh J

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all
Một sản phẩm của Công ty Cổ phần Thương mại Vạn Tín Việt·vantinviet.com