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

Get-DbaDbBackupHistory - exception on data source length in connection #9351

Open
Venkat20241985 opened this issue May 15, 2024 · 4 comments
Labels
bugs life pending OP feedback Waiting for feedback from the OP of the issue

Comments

@Venkat20241985
Copy link

Verified issue does not already exist?

No, I did not search

What error did you receive?

WARNING: [03:57:55][Get-DbaDbBackupHistory] Failure | The value's length for key 'Data Source' exceeds its limit of '128'.
PS>TerminatingError(): "System error."

DBATools version 2.1.14

Steps to Reproduce

# provide your command(s) executed pertaining to dbatools
# please include variable values (redacted or fake if needed) for reference
    $FullSync    = $null
    $FullSync    = @()
    $minusdays   = 14;
    $minus14days = (Get-Date).Adddays(-($minusdays))
         $FullSync    += Get-DbaDbBackupHistory -SqlInstance $src -Database $SouceDatabase -Last -IncludeCopyOnly -Since  $minus14days

Please confirm that you are running the most recent version of dbatools

PS G:\PS\DB Restores DBA Tools> Get-InstalledModule dbatools

Version Name Repository Description


2.1.14 dbatools PSGallery The community module that enables SQL Server Pros to automate database development and server administration

Other details or mentions

No response

What PowerShell host was used when producing this error

Windows PowerShell (powershell.exe)

PowerShell Host Version

PS G:\PS\DB Restores DBA Tools> $PSVersionTable

Name Value


PSVersion 5.1.17763.5696
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.5696
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

SQL Server Edition and Build number

Microsoft SQL Server 2022 (RTM-CU12-GDR) (KB5036343) - 16.0.4120.1 (X64) Mar 18 2024 12:02:14 Copyright (C) 2022 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2019 Datacenter 10.0 (Build 17763: ) (Hypervisor)

.NET Framework Version

PS G:\PS\DB Restores DBA Tools> Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where PSChildName -Match '^(?!S)\p{L}' | Select PSChildName, version

PSChildName Version


v2.0.50727 2.0.50727.4927
v3.0 3.0.30729.4926
Windows Communication Foundation 3.0.4506.4926
Windows Presentation Foundation 3.0.6920.4902
v3.5 3.5.30729.4926
Client 4.8.03761
Full 4.8.03761
Client 4.0.0.0

@Venkat20241985 Venkat20241985 added bugs life triage required New issue that has not been reviewed by maintainers labels May 15, 2024
@niphlod
Copy link
Contributor

niphlod commented May 15, 2024 via email

@Venkat20241985
Copy link
Author

$src is source sql server which is same version as specified above

@niphlod
Copy link
Contributor

niphlod commented May 15, 2024 via email

@andreasjordan andreasjordan added pending OP feedback Waiting for feedback from the OP of the issue and removed triage required New issue that has not been reviewed by maintainers labels May 26, 2024
@wsmelton
Copy link
Member

Please provide an example value of your $src variable, will allow us to test and verify if there's a bug or not.

@wsmelton wsmelton changed the title [Get-DbaDbBackupHistory] Failure | The value's length for key 'Data Source' exceeds its limit of '128'. Get-DbaDbBackupHistory - exception on data source length in connection May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs life pending OP feedback Waiting for feedback from the OP of the issue
Projects
None yet
Development

No branches or pull requests

4 participants