Skip to content

Commit d3049d4

Browse files
added pscritpinfo
1 parent 59a5b01 commit d3049d4

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

.vscode/launch.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "PowerShell",
6+
"type": "PowerShell",
7+
"request": "launch",
8+
"program": "${file}",
9+
"args": [],
10+
"cwd": "${file}"
11+
}
12+
]
13+
}

set-sqllogfiles.ps1

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,36 @@
1-
function Set-SQLLogFiles
1+
<#PSScriptInfo
2+
3+
.VERSION 1.0
4+
5+
.GUID edba8ac2-e4d8-471a-b4ca-7fae59ee3ac4
6+
7+
.AUTHOR Rob Sewell
8+
9+
.DESCRIPTION
10+
Uses SMO to set the number of Log files for a single or group of SQL Servers
11+
12+
.COMPANYNAME
13+
14+
.COPYRIGHT
15+
16+
.TAGS SQL Error log SQL Server
17+
18+
.LICENSEURI
19+
20+
.PROJECTURI
21+
22+
.ICONURI
23+
24+
.EXTERNALMODULEDEPENDENCIES
25+
26+
.REQUIREDSCRIPTS
27+
28+
.EXTERNALSCRIPTDEPENDENCIES
29+
30+
.RELEASENOTES
31+
32+
#>
33+
function Set-SQLLogFiles
234
{
335
<#
436
.Synopsis
@@ -25,6 +57,7 @@ The number of logfiles to set
2557
.NOTES
2658
Author - Rob Sewell SQLDBAWithABeard.com
2759
#>
60+
2861
param(
2962
[object]$instances,
3063
[ValidateRange(0,99)]

set-sqllogfiles1.ps1

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
<#PSScriptInfo
3+
4+
.VERSION 1.0
5+
6+
.GUID edba8ac2-e4d8-471a-b4ca-7fae59ee3ac4
7+
8+
.AUTHOR Rob Sewell
9+
10+
.COMPANYNAME
11+
12+
.COPYRIGHT
13+
14+
.TAGS SQL Error log SQL Server
15+
16+
.LICENSEURI
17+
18+
.PROJECTURI
19+
20+
.ICONURI
21+
22+
.EXTERNALMODULEDEPENDENCIES
23+
24+
.REQUIREDSCRIPTS
25+
26+
.EXTERNALSCRIPTDEPENDENCIES
27+
28+
.RELEASENOTES
29+
30+
31+
#>
32+
33+
<#
34+
35+
.DESCRIPTION
36+
Sets teh number of SQL Error log files for an instance or aray of instances
37+
38+
#>
39+
Param()
40+
41+

0 commit comments

Comments
 (0)