Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read-DbaBackupHeader - SQL 2005 backup fails with column "CompressedBackupSize" does not belong to table #4945

Closed
dlh275 opened this issue Jan 11, 2019 · 5 comments
Assignees

Comments

@dlh275
Copy link

dlh275 commented Jan 11, 2019

Steps to Reproduce

Attempt to read backup information from a SQL 2005 backup. WSMELTON identified the code was removed here: 8f99181#diff-7240b60d2bff43b467f5dbf0a39e6bb7

<#
Get-DbaBackupInformation -Path 'Z:\Temp' -SqlInstance SQL05 -DatabaseName DB -MaintenanceSolution -IgnoreLogBackup
#>

Actual Behavior

WARNING: [11:26:45][Read-DbaBackupHeader] Problem found with Z:\Temp\SQL05\DIFF\db.bak. | Column 'CompressedBackupSize' does not belong to table
Table.

Environmental data

  • PowerShell: 0.9.734
    • SQL Server: Microsoft SQL Server 2005
@wsmelton
Copy link
Member

This is an easy one to fix and will try to get to this today. The initial code that addressed this issue was removed in a previous commit back in November....so just has to be put back in.

@wsmelton
Copy link
Member

@potatoqualitee do you happen to have a 2005 version of pubs or northwnd we could add to our test so this bug does not come back again? Or do we want to include that level in our test?

@potatoqualitee
Copy link
Member

sho do!

@wsmelton wsmelton self-assigned this Jan 21, 2019
@potatoqualitee
Copy link
Member

hows this looking, @wsmelton ?

@potatoqualitee
Copy link
Member

info for me

[62.48 ms] C:\github\dbatools> Get-DbaBackupInformation -Path C:\temp\db1.bak -SqlInstance sql2005
WARNING: [21:00:30][Read-DbaBackupHeader] Problem found with C:\temp\db1.bak. | Column 'CompressedBackupSize' does not belong to table Table.

potatoqualitee added a commit that referenced this issue Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants