Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f3b1bb8

Browse files
author
Ben Thul
committed
Removed filestream check in reference to Issue dataplat#3871
1 parent 06a6659 commit f3b1bb8

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

‎functions/Test-DbaBackupInformation.ps1‎

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -155,29 +155,6 @@ function Test-DbaBackupInformation {
155155
}
156156
}
157157
}
158-
#Easier to do FileStream checks out of the loop:
159-
if ('s' -in ($DbHistory | Select-Object -ExpandProperty filelist | Select-Object FileType -Unique).FileType) {
160-
if ((Get-DbaSpConfigure -SqlInstance $RestoreInstance -ConfigName FilestreamAccessLevel).RunningValue -eq 0) {
161-
Write-Message -Level Warning -Message "Database $Database contains FileStream data, and FileStream is not enable on the destination server"
162-
$VerificationErrors++
163-
}
164-
165-
$ExistingFS = Get-DbaFileStreamFolder -SqlInstance $SqlInstance
166-
foreach ($FileStreamFolder in ($DbHistory | Select-Object -ExpandProperty filelist | Where-Object {$_.FileType -eq 's'} | Select-Object PhysicalName -unique).PhysicalName) {
167-
if ($null -ne $ExistingFS) {
168-
if ($null -ne ($ExistingFs | Where-Object {$_.Database -eq $Database}) -and $Withreplace -ne $True) {
169-
Write-Message -Level Warning -Message "Folder $FileStreamFolder already in use for Filestream data on $SqlInstance and WithReplace not specified, cannot restore"
170-
$VerificationErrors++
171-
}
172-
$OtherOwners = $ExistingFs | Where-Object {$_.FileStreamFolder -eq $FileStreamFolder -and $_.Database -ne $Database}
173-
if ($null -ne $OtherOwners) {
174-
Write-Message -Level Warning -Message "Folder $FileStreamFolder already in use for Filestream data by $($OtherOwners.Database) on $SqlInstance, cannot restore"
175-
$VerificationErrors++
176-
}
177-
}
178-
}
179-
}
180-
181158
}
182159

183160
#Test all backups readable
@@ -206,4 +183,4 @@ function Test-DbaBackupInformation {
206183
}
207184
$InternalHistory
208185
}
209-
}
186+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /