Skip to content

Commit

Permalink
add SQL 2016/2017 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
larspl committed Jul 11, 2018
1 parent a31b1bb commit 00d373e
Show file tree
Hide file tree
Showing 7 changed files with 429 additions and 5 deletions.
48 changes: 48 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File in Temporary Console",
"script": "${file}",
"args": [],
"cwd": "${file}",
"createTemporaryIntegratedConsole": true
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File w/Args Prompt",
"script": "${file}",
"args": [
"${command:SpecifyScriptArgs}"
],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "attach",
"name": "PowerShell Attach to Host Process",
"processId": "${command:PickPSHostProcess}",
"runspaceId": 1
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session",
"cwd": "${workspaceRoot}"
}
]
}
4 changes: 4 additions & 0 deletions Modules/SqlServerInventory/SqlServerInventory.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant


New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
Expand All @@ -38,6 +40,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant


######################
Expand Down
5 changes: 5 additions & 0 deletions Modules/SqlServerInventory/de/SqlServerInventory.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant



New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
Expand All @@ -38,6 +41,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant


######################
Expand Down
5 changes: 5 additions & 0 deletions Modules/SqlServerInventory/en-US/SqlServerInventory.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant



New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
Expand All @@ -38,6 +41,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant


######################
Expand Down
5 changes: 5 additions & 0 deletions Modules/SqlServerInventory/en/SqlServerInventory.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ New-Variable -Name CatSecurity -Value 'Security' -Scope Script -Option Constant
New-Variable -Name CatAvailability -Value 'Availability' -Scope Script -Option Constant
New-Variable -Name CatRecovery -Value 'Recovery' -Scope Script -Option Constant
New-Variable -Name CatInformation -Value 'Information' -Scope Script -Option Constant
New-Variable -Name CatProperties -Value 'Properties' -Scope Script -Option Constant



New-Variable -Name XlNumFmtDate -Value '[$-409]mm/dd/yyyy h:mm:ss AM/PM;@' -Scope Script -Option Constant
New-Variable -Name XlNumFmtTime -Value '[$-409]h:mm:ss AM/PM;@' -Scope Script -Option Constant
Expand All @@ -38,6 +41,8 @@ New-Object -TypeName System.Version -ArgumentList '10.0.0.0' | New-Variable -Nam
New-Object -TypeName System.Version -ArgumentList '10.50.0.0' | New-Variable -Name SQLServer2008R2 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '11.0.0.0' | New-Variable -Name SQLServer2012 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '12.0.0.0' | New-Variable -Name SQLServer2014 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '13.0.0.0' | New-Variable -Name SQLServer2016 -Scope Script -Option Constant
New-Object -TypeName System.Version -ArgumentList '14.0.0.0' | New-Variable -Name SQLServer2017 -Scope Script -Option Constant


######################
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

SQL Power Doc is a collection of Windows PowerShell scripts and modules that discover, document, and diagnose SQL Server instances and their underlying Windows OS & machine configurations. SQL Power Doc works with all versions of SQL Server from SQL Server 2000 through 2014, and all versions of Windows Server and consumer Windows Operating Systems from Windows 2000 and Windows XP through Windows Server 2012 R2 and Windows 8\. SQL Power Doc is also capable of documenting Windows Azure SQL Databases.

#### Discover
## Discover

Find SQL Server Services on your network by:

* Active Directory DNS
* Subnet Scan
* Computer Name

#### Document
## Document

Collect comprehensive details about SQL Server instances and their underlying Windows OS, including:

Expand Down Expand Up @@ -46,17 +46,17 @@ This documentation is useful for:
* Creating a runbook that you can give to your operations team
* Planning upgrades - see what hidden features are in use on an instance

#### Diagnose
## Diagnose

SQL Power Doc performs over 100 checks to find hidden problems and performance bottlenecks on your SQL Servers before they turn into major headaches.

##### But Wait, There's More!
## But Wait, There's More!

SQL Power Doc isn't limited to just SQL Server - you can also use it to collect an inventory of all the Windows machines on your network. If you're in need of a free documentation solution for Windows SQL Power Doc is up to the task!

## Ready To Get Started?

1. Read the [Requirements](https://sqlpowerdoc.codeplex.com/wikipage?title=Requirements) and the [How To Guide](https://sqlpowerdoc.codeplex.com/wikipage?title=Guide%20For%20PowerShell%20Beginners)
2. [Download](https://sqlpowerdoc.codeplex.com/releases) the latest version
2. [Download](https://github.com/larspl/SQLPowerDoc/releases) the latest version
3. Collect an inventory
4. Look like a rockstar
Loading

0 comments on commit 00d373e

Please sign in to comment.