Groups | Blog | Home
all groups > sql server clients > april 2004 >

sql server clients : set password on backup file


Mark Allison
4/23/2004 9:22:11 AM
NOOR,

You can't do it natively in SQL Server, however SQLLiteSpeed allows you to
encrypt on the fly. See http://www.imceda.com/products.asp?prod=1. There are
other benefits too like reduced backup and restore times, and compressed
backup files.

--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk




[quoted text, click to view]

Noorali Issani
4/23/2004 12:38:41 PM
How can I set the password on my database backup file.. I don't wanna use
zip options...

Any idea about encryption?

Thanks
NOOR

Noorali Issani
4/23/2004 2:19:11 PM
You are awesome Hari..

Thanks alot

Noor

[quoted text, click to view]

Noorali Issani
4/23/2004 2:40:05 PM
Let's assume I am restoring the database from Enterprise Manager so how Can
I restore ?

Thanks

NOOR
[quoted text, click to view]

Hari
4/23/2004 2:41:46 PM
Hi Noor,

Use the backup database command with PASSWORD option. Sample is shown below;

Backup database pubs to disk='c:\pubs.bak' with init,password='hari'

While restorong if you are not giving the password the restore operation
will fail with below error

"Server: Msg 3279, Level 16, State 2, Line 1
Access is denied due to a password failure
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally."

How to restore with password
----------------------------------

Restore database pubstest from disk='c:\hari.bak' with password='hari'

Thanks
Hari
MCDBA


[quoted text, click to view]

Jasper Smith
4/23/2004 11:55:39 PM
You can't, it doesn't prompt for a password. You need to restore from Query
Analyzer and specify the password used for the backup.

--
HTH

Jasper Smith (SQL Server MVP)

I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org


[quoted text, click to view]

AddThis Social Bookmark Button