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

[Bug] Add-DbaAgDatabase tries to modify seeding mode on SQL 2014 #5702

Closed
GeorgePalacios opened this issue Jun 10, 2019 · 0 comments · Fixed by #5774
Closed

[Bug] Add-DbaAgDatabase tries to modify seeding mode on SQL 2014 #5702

GeorgePalacios opened this issue Jun 10, 2019 · 0 comments · Fixed by #5774
Assignees

Comments

@GeorgePalacios
Copy link
Contributor

Environmental information

PowerShell version:

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

dbatools Module version:

Name : dbatools
Path : C:\Program Files\WindowsPowerShell\Modules\dbatools\0.9.834\dbatools.psd1
Version : 0.9.834

SQL Server:

Microsoft SQL Server 2014 (SP3-CU2) (KB4482960) - 12.0.6214.1 (X64)   Feb  2 2019 01:10:18   Copyright (c) Microsoft Corporation  Developer Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor) 

Report

Errors Received

Steps to Reproduce

Run the command with -SeedingMode parameter set to either Automatic or Manual on a SQL2014 server.

Expected Behavior

Command should execute as expected, accounting for the difference between versions

Actual Behavior

An error is received:

Exception setting "SeedingMode": "Cannot write property SeedingMode. This property is not available on SQL Server 2014."
 At line:179 char:13
 +             $agreplica.SeedingMode = $SeedingMode
 +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationException
     + FullyQualifiedErrorId : ExceptionWhenSetting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants