File tree 3 files changed +88
-1
lines changed
3 files changed +88
-1
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 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
2
34
{
3
35
<#
4
36
. Synopsis
@@ -25,6 +57,7 @@ The number of logfiles to set
25
57
. NOTES
26
58
Author - Rob Sewell SQLDBAWithABeard.com
27
59
#>
60
+
28
61
param (
29
62
[object ]$instances ,
30
63
[ValidateRange (0 , 99 )]
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments