SSMS 2016, Availability Groups, database is encrypted error The 2019 Stack Overflow Developer...
How to answer pointed "are you quitting" questioning when I don't want them to suspect
Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?
Families of ordered set partitions with disjoint blocks
A poker game description that does not feel gimmicky
Where to refill my bottle in India?
What tool would a Roman-age civilisation use to reduce/breakup silver and other metals?
What does "sndry explns" mean in one of the Hitchhiker's guide books?
Can't find the latex code for the ⍎ (down tack jot) symbol
Why is it "Tumoren" and not "Tumore"?
"What time...?" or "At what time...?" - what is more grammatically correct?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Why do UK politicians seemingly ignore opinion polls on Brexit?
What is the use of option -o in the useradd command?
Geography at the pixel level
Should I write numbers in words or as symbols in this case?
What does "rabbited" mean/imply in this sentence?
JSON.serialize: is it possible to suppress null values of a map?
Lethal sonic weapons
Extreme, unacceptable situation and I can't attend work tomorrow morning
Evaluating number of iteration with a certain map with While
is usb on wall sockets live all the time with out switches off
Spanish for "widget"
Fractional alignment
Did USCIS resume its biometric service for UK visa?
SSMS 2016, Availability Groups, database is encrypted error
The 2019 Stack Overflow Developer Survey Results Are InDatabase Properties Error - sys.spt_values missing but dbo.spt_values works?Implementation steps for adding database to an Availability GroupSQL Server AlwaysON : start sync with secondary for selected databasesSSMS 2012 / 2014 / 2016 Object Explorer hangs when Expanding Databases list on a server with many DBsSQL Server 2016 Availability Groups Named Pipes?Always On Availability Groups with Encrypted ConnectionsDoes SQL Server 2017 CU1 break clusterless availability groups?SQLServer AlwaysOn Availability Groups in 2014 and 2016Migrate from SQL 2016 Failover Cluster to Availability GroupsUsing TDE and SQL Server 2016 AlwaysOn Availability Groups
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
While evaluating possibility for rolling upgrade of SQL Server 2012 instances hosting AGs to SQL Server 2016 we ran into strange issue that does not quite make sense. One of the easier way to demonstrate is as follows:
Let’s say you want to add database to AG (2012 instance is being used). SSMS 2012 or SSMS 2014 wizard shows no surprises:

SSMS 2016 however tells completely different story:

For databases that are already part of AG it says “Does not meet prerequisites” instead of “Already part…” and for those not in AG it says “Password required” with the following explanation:
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
Problem with this message is that none of the databases use any encryption.
Same issue manifests itself if you restore database from 2012 AG backup on 2016 instance and try to add it to 2016 AG using SSMS 2016 wizard.
sql-server availability-groups sql-server-2016
add a comment |
While evaluating possibility for rolling upgrade of SQL Server 2012 instances hosting AGs to SQL Server 2016 we ran into strange issue that does not quite make sense. One of the easier way to demonstrate is as follows:
Let’s say you want to add database to AG (2012 instance is being used). SSMS 2012 or SSMS 2014 wizard shows no surprises:

SSMS 2016 however tells completely different story:

For databases that are already part of AG it says “Does not meet prerequisites” instead of “Already part…” and for those not in AG it says “Password required” with the following explanation:
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
Problem with this message is that none of the databases use any encryption.
Same issue manifests itself if you restore database from 2012 AG backup on 2016 instance and try to add it to 2016 AG using SSMS 2016 wizard.
sql-server availability-groups sql-server-2016
When you restore the 2012 DB backup to 2016, do you change the compatibility mode to 2016 or leave it at 2012? I've seen this when dealing with SSISDB on SQL 2014 with SSMS 2016. With SSISDB it's a known issue with SSMS 2016 that you can only use SSMS 2016 with SSIS 2016. Previous versions don't play nice. Item 3 in the following article: docs.microsoft.com/en-us/sql/ssms/…
– Kris Gruttemeyer
Apr 7 '17 at 19:39
I experienced the same issue and used tsql to set this up instead of GUI, worked fine. There was no master key but I was still getting the same error message.
– SqlWorldWide
Apr 7 '17 at 22:52
@Kris: I tried both, does not make any difference.
– Eternum
Apr 8 '17 at 20:22
@SqlWorldWide: True, T-SQL works, I tried that also. What is puzzling though is that after I add database to 2016 instance using T-SQL, SSMS 2016 shows newly added database as "Does not meet prerequisites" instead of "Already part of this availability group". Something is still horribly wrong. Question is -- what?
– Eternum
Apr 8 '17 at 20:27
@Eternum "Already part of this availability group" in primary or secondary? Does it show up in sys.databases?
– SqlWorldWide
Apr 8 '17 at 22:39
add a comment |
While evaluating possibility for rolling upgrade of SQL Server 2012 instances hosting AGs to SQL Server 2016 we ran into strange issue that does not quite make sense. One of the easier way to demonstrate is as follows:
Let’s say you want to add database to AG (2012 instance is being used). SSMS 2012 or SSMS 2014 wizard shows no surprises:

SSMS 2016 however tells completely different story:

For databases that are already part of AG it says “Does not meet prerequisites” instead of “Already part…” and for those not in AG it says “Password required” with the following explanation:
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
Problem with this message is that none of the databases use any encryption.
Same issue manifests itself if you restore database from 2012 AG backup on 2016 instance and try to add it to 2016 AG using SSMS 2016 wizard.
sql-server availability-groups sql-server-2016
While evaluating possibility for rolling upgrade of SQL Server 2012 instances hosting AGs to SQL Server 2016 we ran into strange issue that does not quite make sense. One of the easier way to demonstrate is as follows:
Let’s say you want to add database to AG (2012 instance is being used). SSMS 2012 or SSMS 2014 wizard shows no surprises:

SSMS 2016 however tells completely different story:

For databases that are already part of AG it says “Does not meet prerequisites” instead of “Already part…” and for those not in AG it says “Password required” with the following explanation:
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
Problem with this message is that none of the databases use any encryption.
Same issue manifests itself if you restore database from 2012 AG backup on 2016 instance and try to add it to 2016 AG using SSMS 2016 wizard.
sql-server availability-groups sql-server-2016
sql-server availability-groups sql-server-2016
asked Apr 7 '17 at 19:27
EternumEternum
4514
4514
When you restore the 2012 DB backup to 2016, do you change the compatibility mode to 2016 or leave it at 2012? I've seen this when dealing with SSISDB on SQL 2014 with SSMS 2016. With SSISDB it's a known issue with SSMS 2016 that you can only use SSMS 2016 with SSIS 2016. Previous versions don't play nice. Item 3 in the following article: docs.microsoft.com/en-us/sql/ssms/…
– Kris Gruttemeyer
Apr 7 '17 at 19:39
I experienced the same issue and used tsql to set this up instead of GUI, worked fine. There was no master key but I was still getting the same error message.
– SqlWorldWide
Apr 7 '17 at 22:52
@Kris: I tried both, does not make any difference.
– Eternum
Apr 8 '17 at 20:22
@SqlWorldWide: True, T-SQL works, I tried that also. What is puzzling though is that after I add database to 2016 instance using T-SQL, SSMS 2016 shows newly added database as "Does not meet prerequisites" instead of "Already part of this availability group". Something is still horribly wrong. Question is -- what?
– Eternum
Apr 8 '17 at 20:27
@Eternum "Already part of this availability group" in primary or secondary? Does it show up in sys.databases?
– SqlWorldWide
Apr 8 '17 at 22:39
add a comment |
When you restore the 2012 DB backup to 2016, do you change the compatibility mode to 2016 or leave it at 2012? I've seen this when dealing with SSISDB on SQL 2014 with SSMS 2016. With SSISDB it's a known issue with SSMS 2016 that you can only use SSMS 2016 with SSIS 2016. Previous versions don't play nice. Item 3 in the following article: docs.microsoft.com/en-us/sql/ssms/…
– Kris Gruttemeyer
Apr 7 '17 at 19:39
I experienced the same issue and used tsql to set this up instead of GUI, worked fine. There was no master key but I was still getting the same error message.
– SqlWorldWide
Apr 7 '17 at 22:52
@Kris: I tried both, does not make any difference.
– Eternum
Apr 8 '17 at 20:22
@SqlWorldWide: True, T-SQL works, I tried that also. What is puzzling though is that after I add database to 2016 instance using T-SQL, SSMS 2016 shows newly added database as "Does not meet prerequisites" instead of "Already part of this availability group". Something is still horribly wrong. Question is -- what?
– Eternum
Apr 8 '17 at 20:27
@Eternum "Already part of this availability group" in primary or secondary? Does it show up in sys.databases?
– SqlWorldWide
Apr 8 '17 at 22:39
When you restore the 2012 DB backup to 2016, do you change the compatibility mode to 2016 or leave it at 2012? I've seen this when dealing with SSISDB on SQL 2014 with SSMS 2016. With SSISDB it's a known issue with SSMS 2016 that you can only use SSMS 2016 with SSIS 2016. Previous versions don't play nice. Item 3 in the following article: docs.microsoft.com/en-us/sql/ssms/…
– Kris Gruttemeyer
Apr 7 '17 at 19:39
When you restore the 2012 DB backup to 2016, do you change the compatibility mode to 2016 or leave it at 2012? I've seen this when dealing with SSISDB on SQL 2014 with SSMS 2016. With SSISDB it's a known issue with SSMS 2016 that you can only use SSMS 2016 with SSIS 2016. Previous versions don't play nice. Item 3 in the following article: docs.microsoft.com/en-us/sql/ssms/…
– Kris Gruttemeyer
Apr 7 '17 at 19:39
I experienced the same issue and used tsql to set this up instead of GUI, worked fine. There was no master key but I was still getting the same error message.
– SqlWorldWide
Apr 7 '17 at 22:52
I experienced the same issue and used tsql to set this up instead of GUI, worked fine. There was no master key but I was still getting the same error message.
– SqlWorldWide
Apr 7 '17 at 22:52
@Kris: I tried both, does not make any difference.
– Eternum
Apr 8 '17 at 20:22
@Kris: I tried both, does not make any difference.
– Eternum
Apr 8 '17 at 20:22
@SqlWorldWide: True, T-SQL works, I tried that also. What is puzzling though is that after I add database to 2016 instance using T-SQL, SSMS 2016 shows newly added database as "Does not meet prerequisites" instead of "Already part of this availability group". Something is still horribly wrong. Question is -- what?
– Eternum
Apr 8 '17 at 20:27
@SqlWorldWide: True, T-SQL works, I tried that also. What is puzzling though is that after I add database to 2016 instance using T-SQL, SSMS 2016 shows newly added database as "Does not meet prerequisites" instead of "Already part of this availability group". Something is still horribly wrong. Question is -- what?
– Eternum
Apr 8 '17 at 20:27
@Eternum "Already part of this availability group" in primary or secondary? Does it show up in sys.databases?
– SqlWorldWide
Apr 8 '17 at 22:39
@Eternum "Already part of this availability group" in primary or secondary? Does it show up in sys.databases?
– SqlWorldWide
Apr 8 '17 at 22:39
add a comment |
2 Answers
2
active
oldest
votes
Problem with this message is that none of the databases use any encryption.
That is probably true :) However, that's not what the error is saying...
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
The error is saying, in plain English: You have a databases that has, inside of it, a database master key. That database master key is encrypted using a password. I need you to give me that password so that I can decrypt any objects that might be encrypted using it.
Here is a super quick repro to give you the "message":
CREATE DATABASE PasswordTest;
GO
USE PasswordTest;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘$up3r$tr0ng’
GO
SMSS isn't saying it can't use the database, it's asking for the password to open the master key.
What's the fix?
You have a few options, but here are the best two:
- Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
- If you're not using the master key... Drop It.
It turned out that database did have master key.
Yes, as the error specified. This was not in doubt :)
screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did?
It was added in SSMS 2016... Not sure what you were looking for here as items are added to new versions.
And also SSMS 2016 did not have any edit box to enter password.
I dunno - works in mine...

I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
See the screenshot above - I think it's working as intended, at least for me... It might not be intuitive, but it works.
The end result is the same. If you're not a fan of the GUI giving you grief then there is always PowerShell and T-SQL :) If you feel that this isn't working as intended or you don't like it, I'd ask you to post feedback on Connect.
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
add a comment |
Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
(face-palm) ... Yes, you can click on the invisible space to the right and enter the password... BUT WAIT... you must also click the refresh button at this point! (usability fail :)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f169495%2fssms-2016-availability-groups-database-is-encrypted-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Problem with this message is that none of the databases use any encryption.
That is probably true :) However, that's not what the error is saying...
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
The error is saying, in plain English: You have a databases that has, inside of it, a database master key. That database master key is encrypted using a password. I need you to give me that password so that I can decrypt any objects that might be encrypted using it.
Here is a super quick repro to give you the "message":
CREATE DATABASE PasswordTest;
GO
USE PasswordTest;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘$up3r$tr0ng’
GO
SMSS isn't saying it can't use the database, it's asking for the password to open the master key.
What's the fix?
You have a few options, but here are the best two:
- Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
- If you're not using the master key... Drop It.
It turned out that database did have master key.
Yes, as the error specified. This was not in doubt :)
screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did?
It was added in SSMS 2016... Not sure what you were looking for here as items are added to new versions.
And also SSMS 2016 did not have any edit box to enter password.
I dunno - works in mine...

I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
See the screenshot above - I think it's working as intended, at least for me... It might not be intuitive, but it works.
The end result is the same. If you're not a fan of the GUI giving you grief then there is always PowerShell and T-SQL :) If you feel that this isn't working as intended or you don't like it, I'd ask you to post feedback on Connect.
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
add a comment |
Problem with this message is that none of the databases use any encryption.
That is probably true :) However, that's not what the error is saying...
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
The error is saying, in plain English: You have a databases that has, inside of it, a database master key. That database master key is encrypted using a password. I need you to give me that password so that I can decrypt any objects that might be encrypted using it.
Here is a super quick repro to give you the "message":
CREATE DATABASE PasswordTest;
GO
USE PasswordTest;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘$up3r$tr0ng’
GO
SMSS isn't saying it can't use the database, it's asking for the password to open the master key.
What's the fix?
You have a few options, but here are the best two:
- Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
- If you're not using the master key... Drop It.
It turned out that database did have master key.
Yes, as the error specified. This was not in doubt :)
screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did?
It was added in SSMS 2016... Not sure what you were looking for here as items are added to new versions.
And also SSMS 2016 did not have any edit box to enter password.
I dunno - works in mine...

I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
See the screenshot above - I think it's working as intended, at least for me... It might not be intuitive, but it works.
The end result is the same. If you're not a fan of the GUI giving you grief then there is always PowerShell and T-SQL :) If you feel that this isn't working as intended or you don't like it, I'd ask you to post feedback on Connect.
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
add a comment |
Problem with this message is that none of the databases use any encryption.
That is probably true :) However, that's not what the error is saying...
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
The error is saying, in plain English: You have a databases that has, inside of it, a database master key. That database master key is encrypted using a password. I need you to give me that password so that I can decrypt any objects that might be encrypted using it.
Here is a super quick repro to give you the "message":
CREATE DATABASE PasswordTest;
GO
USE PasswordTest;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘$up3r$tr0ng’
GO
SMSS isn't saying it can't use the database, it's asking for the password to open the master key.
What's the fix?
You have a few options, but here are the best two:
- Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
- If you're not using the master key... Drop It.
It turned out that database did have master key.
Yes, as the error specified. This was not in doubt :)
screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did?
It was added in SSMS 2016... Not sure what you were looking for here as items are added to new versions.
And also SSMS 2016 did not have any edit box to enter password.
I dunno - works in mine...

I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
See the screenshot above - I think it's working as intended, at least for me... It might not be intuitive, but it works.
The end result is the same. If you're not a fan of the GUI giving you grief then there is always PowerShell and T-SQL :) If you feel that this isn't working as intended or you don't like it, I'd ask you to post feedback on Connect.
Problem with this message is that none of the databases use any encryption.
That is probably true :) However, that's not what the error is saying...
"This database is encrypted by database master key, you need to provide valid password when adding it to the availability group."
The error is saying, in plain English: You have a databases that has, inside of it, a database master key. That database master key is encrypted using a password. I need you to give me that password so that I can decrypt any objects that might be encrypted using it.
Here is a super quick repro to give you the "message":
CREATE DATABASE PasswordTest;
GO
USE PasswordTest;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘$up3r$tr0ng’
GO
SMSS isn't saying it can't use the database, it's asking for the password to open the master key.
What's the fix?
You have a few options, but here are the best two:
- Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
- If you're not using the master key... Drop It.
It turned out that database did have master key.
Yes, as the error specified. This was not in doubt :)
screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did?
It was added in SSMS 2016... Not sure what you were looking for here as items are added to new versions.
And also SSMS 2016 did not have any edit box to enter password.
I dunno - works in mine...

I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
See the screenshot above - I think it's working as intended, at least for me... It might not be intuitive, but it works.
The end result is the same. If you're not a fan of the GUI giving you grief then there is always PowerShell and T-SQL :) If you feel that this isn't working as intended or you don't like it, I'd ask you to post feedback on Connect.
edited Apr 8 '17 at 21:29
answered Apr 7 '17 at 19:50
Sean GallardySean Gallardy
17k22654
17k22654
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
add a comment |
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
Thank you for the detailed comment. It turned out that database did have master key. I have to dig into this and figure out why it was there to begin with. I dropped master key and SSMS 2016 showed database as "Meets prerequisites". So, that part is solved. But what still makes me wonder is this. Both screenshots in my initial question are from the very same 2012 instance. Why SSMS 2012 and 2014 wizard did not mention anything about master key, but SSMS 2016 wizard did? This is what mainly confused me. And also SSMS 2016 did not have any edit box to enter password.
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
I know exactly what you refer to, but there is nothing there in my case, just empty space under "Password" column, which added to confusion. Do you think there might be a bug in SSMS 2016 or you have some explanation for this behavior?
– Eternum
Apr 8 '17 at 20:58
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
@Eternum updated to reflect your comments.
– Sean Gallardy
Apr 8 '17 at 21:29
add a comment |
Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
(face-palm) ... Yes, you can click on the invisible space to the right and enter the password... BUT WAIT... you must also click the refresh button at this point! (usability fail :)
add a comment |
Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
(face-palm) ... Yes, you can click on the invisible space to the right and enter the password... BUT WAIT... you must also click the refresh button at this point! (usability fail :)
add a comment |
Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
(face-palm) ... Yes, you can click on the invisible space to the right and enter the password... BUT WAIT... you must also click the refresh button at this point! (usability fail :)
Click to the right of the message, you can actually put in the password and the wizard will let you continue without issue (since it can now open the master key).
(face-palm) ... Yes, you can click on the invisible space to the right and enter the password... BUT WAIT... you must also click the refresh button at this point! (usability fail :)
answered 8 mins ago
ebol2000ebol2000
17314
17314
add a comment |
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f169495%2fssms-2016-availability-groups-database-is-encrypted-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
When you restore the 2012 DB backup to 2016, do you change the compatibility mode to 2016 or leave it at 2012? I've seen this when dealing with SSISDB on SQL 2014 with SSMS 2016. With SSISDB it's a known issue with SSMS 2016 that you can only use SSMS 2016 with SSIS 2016. Previous versions don't play nice. Item 3 in the following article: docs.microsoft.com/en-us/sql/ssms/…
– Kris Gruttemeyer
Apr 7 '17 at 19:39
I experienced the same issue and used tsql to set this up instead of GUI, worked fine. There was no master key but I was still getting the same error message.
– SqlWorldWide
Apr 7 '17 at 22:52
@Kris: I tried both, does not make any difference.
– Eternum
Apr 8 '17 at 20:22
@SqlWorldWide: True, T-SQL works, I tried that also. What is puzzling though is that after I add database to 2016 instance using T-SQL, SSMS 2016 shows newly added database as "Does not meet prerequisites" instead of "Already part of this availability group". Something is still horribly wrong. Question is -- what?
– Eternum
Apr 8 '17 at 20:27
@Eternum "Already part of this availability group" in primary or secondary? Does it show up in sys.databases?
– SqlWorldWide
Apr 8 '17 at 22:39