You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performs a full backup of the database named **MyDatabase** and returns
117
+
the database object for further pipeline operations.
118
+
107
119
.INPUTS
108
120
`Microsoft.SqlServer.Management.Smo.Server`
109
121
@@ -116,11 +128,19 @@
116
128
117
129
.OUTPUTS
118
130
None.
131
+
132
+
No output when the **PassThru** parameter is not specified.
133
+
134
+
.OUTPUTS
135
+
`Microsoft.SqlServer.Management.Smo.Database`
136
+
137
+
Returns the database object that was backed up when using the **PassThru** parameter.
119
138
#>
120
139
functionBackup-SqlDscDatabase
121
140
{
122
141
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
0 commit comments