• This repository has been archived on 24/Feb/2019
  • Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    PowerShell
  • License
    GNU General Publi...
  • Created over 8 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PowerShell Module to gather, store and report on data about your estate. **This repository has been archived due to no longer being maintained.**

DBA Reports

licence badge stars badge forks badge issues badge

This repo contains the PowerShell module SSRS and PowerBi samples for you to gather, store and report on information about your SQL Server estate. You can find more details on the website https://dbareports.io

[Build status]- Development branch appveyor build latest

[Build status]- master branch appveyor build latest

Installer

Weโ€™ve tried to make the installation experience as simple as possible. Executing Install-DBAreports does the following:

Alt text

  • Uses SQL Serverโ€™s default backup directory if no InstallPath is specified
  • Uses a logging directory within your InstallPath if no log path is specified
  • If no proxy account is specified, you will be prompted to create one or choose to use the SQL Agentโ€™s service account
  • Customizes the PowerShell scripts for your specific install and associates them with the SQL Agent Jobs
  • Creates the database if it doesnโ€™t already exist
  • Creates the required schemas, extended proeprties, tables, stored procedures and user-defined table types
  • Automatically creates the required SQL Agent PowerShell and T-SQL jobs
  • Automatically schedules each job
  • Writes a client config file to your local PowerShell directory so that you donโ€™t have to specify your dbareports server and database each time you run a command

Alt Text

Experience

Adding and modifying SQL Servers is performed through PowerShell commands, while PowerBI and SSRS are used to visualize the data that the Agent Jobs collect.

Goals

The ultimate goal of dbareports is to enable SQL Server DBAs to provide up to date, accurate information about the SQL Server Estate (It can easily be expanded for other technologies) to other parties. The other parties could be

  • technical teams: DBA Team, DataCenter, Systems Teams, Developers, IT Security
  • technical process teams: Change Managers, Project Managers, Compliance
  • senior management
  • business teams: Client Account Managers, System Owners
  • external: Auditors, Third Party Suppliers

This is NOT real-time monitoring โ€“ of course you could develop it to be so. But at present dbareports is designed to provide information about estates it does not alert about issues. The types of information available about the estate includes

  • Overall Information: Number of Servers, Instances, Databases, Environments, Clients, Locations
  • Operating System: HostName, Operating System version, IP Addresses, RAM, CPU
  • Instance: SQL version, edition, collation, service accounts, memory settings, default locations, configuration
  • Database: Collation, Compatibility, last backup, owner, space used, space available
  • SQL Agent server level: Roll up of number of jobs and status
  • SQL Agent detail: Name, Category, Status, Last Run Time, Outcome
  • Suspect Pages: Number of suspect pages in msdb
  • Database last used: Uses the sys.dm_db_index_usage_stats

How To Install

  • Click on Clone or Download and download the repo.
  • Unzip and Copy the folder to your modules folder Use $env:PSModulePath to pick a folder
  • Run Import-Module dbareports
  • Get-Help Install-Dbareports -showwindow
  • Then install using the details and examples there
  • To add servers use Add-DbrServerToInventory Run Get-Help Add-DbrServerToInventory -detailed or -showwindow first

More Repositories

1

dbatools

๐Ÿš€ SQL Server automation and instance migrations have never been safer, faster or freer
PowerShell
2,441
star
2

dbachecks

โœ” SQL Server Environmental Validation
PowerShell
461
star
3

dbops

โš™ dbops - Powershell module that provides continuous database deployments on any scale
PowerShell
155
star
4

DataSaturdays

A repository for open sourcing a solution for Data Saturdays
HTML
142
star
5

dbaclone

๐Ÿ‘ฏ Clone SQL Server databases using PowerShell previously named PSDatabaseClone
PowerShell
133
star
6

Invoke-SqlCmd2

PowerShell module containing Invoke-SqlCmd2
PowerShell
68
star
7

community-presentations

Presentation Repository for SQL Server / PowerShell Presentations within the Community
Jupyter Notebook
41
star
8

dbatools-templates

Templates for dbatools commands
PowerShell
30
star
9

dbatools-lab

Build a lab environment for testing out dbatools
Jupyter Notebook
22
star
10

mastodon

Where to find Data Platform, PowerShell and Power BI Twitter friends on Mastodon
20
star
11

docker

The code that's used to create the dbatools SQL Server images on Docker Hub.
TSQL
18
star
12

dbadisa

๐Ÿฆ… DISA STIG automation module for SQL Server
PowerShell
16
star
13

docs

The documentation for dbatools module. Issues with command doc and bugs should be reported to dataplat/dbatools.
HTML
15
star
14

ADSNotebook

PowerShell Module for interacting with Azure Data Studio Notebooks
PowerShell
14
star
15

AlwaysEncryptedSample

Sample ASP.NET MVC Application for demonstrating Microsoft SQL Server Always Encrypted Functionality
C#
14
star
16

dbarefresh

๐Ÿ”„ Database refresh module to copy partial data from production to another database
PowerShell
12
star
17

dataplat.github.io

Resources for the SQL Collaborative
HTML
11
star
18

AzureDataPipelineTools

A collection of Azure Function to make building Azure Data Factory pipeline simpler and easier.
C#
10
star
19

dbasecurityscan

Baseline, check and correct your SQL Database Security
PowerShell
10
star
20

dbatools.library

dbatools smo library builder
C#
7
star
21

dbatools-traininglab

a nice lil tutorial to help with useful tutorials
4
star
22

ssis-reporting-pack

3
star
23

dbatools-lab-dotnet-extension

This repo will hold the code to make the Azure Data Studio Extension for the dbatools dotnet interactive Notebooks which enables you to run dbatools against a couple of containers on your machine
Jupyter Notebook
3
star
24

disa-docs

Crowd-sourced Template for SQL Server Documentation as required by DISA
3
star
25

DataSpeakers

A simple repository which can serve as a resource for event owners to find speakers. The data is displayed on https://callfordataspeakers.com/precon and controlled with GitHub Issues and GitHub Actions
Shell
3
star
26

appveyor-lab

repo for full-on appveyor tests
TSQL
2
star
27

AlwaysEncryptedSample.Docs

2
star
28

sqlpsweb

basically a redirector
HTML
2
star
29

dbatools-libary

Source code to the dbatools.dll library utilized by dbatools PowerShell module
C#
2
star
30

dbachecksweb

redirector site for dbachecks.io
HTML
1
star
31

yourrole

Shell
1
star
32

web

dbatools.io website
HTML
1
star