Click here to Skip to main content
15,900,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
create   MASTER KEY ENCRYPTION
BY PASSWORD='MyStrongPassword';
GO

it gives error
Msg 15578,Level 16,State1, Line 1
There is already key in database.Please drop it before performing this statement.
Plase let me know any solution.
Posted

1 solution

SQL
ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD = 'MyStrongPassword';
GO
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900