November 5, 2011 at 12:28 am
Hi,
Can anybody please suggest me the script a database encrypted backup?
backup database test to disk='c:\test.bak' with mediapassword = 'XXXX'
restore database test1 from disk='c:\test.bak' decryption by password = 'XXXX';
The above script doesn't work..
Regards,
Sourav
Thanks.
November 5, 2011 at 12:37 pm
As per Books Online...
RESTORE DATABASE ...
WITH MEDIAPASSWORD = 'XXXX'
This is not encryption, no keys, no certificates. This is nothing more than a weak password to discourage someone from restoring the media. Also, it's deprecated (since 2005 iirc) and should not be used.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 5, 2011 at 1:11 pm
Thanks guys for the valuable feedback.
Thanks.
November 6, 2011 at 9:22 am
I'm now suggesting the customer to use 'database level encryption'.
Thanks.
November 6, 2011 at 9:32 am
Sourav-657741 (11/6/2011)
I'm now suggesting the customer to use 'database level encryption'.
SQL 2005 doesn't have database encryption. It has column encryption, which is a completely different thing.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 6, 2011 at 9:39 am
Thanks GilaMonster, the server is SQL 2K8.
Thanks.
November 7, 2011 at 7:04 am
There is Transparent Data Encryption or column encryption, no database level encryption. Whichever one you choose, you will need to be careful about backing up and managing the encryption keys. You also should make sure you use the proper terminology or you might confuse people as to how they might handle a restore.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply