I accidentally used date data type (rather than datetime) to encrypt a column. As I understood from online research, that select convert(varbinary(200), decryptbykey(encrypteddate)) myvarbincol from mytable .. works fine, select convert(date,convert(varbinary(200), decryptbykey(encrypteddate))) mydatecol from mytable .. it yells at me, and I can't use it to insert or update my destination Is there any way to recover my encrypted values and get them into a proper datetime without starting over? |
↧
decrypt date data type
↧