Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to set a password for MDF files?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

umarsql
Starting Member

3 Posts

Posted - 01/13/2011 :  00:53:51  Show Profile  Reply with Quote
I am using SQL SERVER 2000.
As u know we can copy MDF and LDF files and paste them on other PC and easily attach it by EM and view its contents!!!

and as u know, MSAccess has an option to set a password to its MDB file!
then whenever someone wants to open it, first must enter the password!

i want to do on my database like this so that no one except me can easily attach my mdf files and use it!!!

is there any way for this...?!

webfred
Flowing Fount of Yak Knowledge

Germany
8781 Posts

Posted - 01/13/2011 :  04:35:54  Show Profile  Visit webfred's Homepage  Reply with Quote
It is only possible to restrict access to files where they are stored.
You can't set a password to the file.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

GilaMonster
Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 01/13/2011 :  04:59:39  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
On SQL 2008 there's TDE, which while it's not a password is a feature for restricting attach, but that's 2008 Enterprise edition only.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
38200 Posts

Posted - 01/13/2011 :  05:13:31  Show Profile  Visit tkizer's Homepage  Reply with Quote
I like all of the exclamation points in the original post. Here's mine:

You are using SQL Server 2000?!!!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 01/13/2011 :  08:52:30  Show Profile  Visit russell's Homepage  Reply with Quote
quote:
Originally posted by tkizer

I like all of the exclamation points in the original post. Here's mine:

You are using SQL Server 2000?!!!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog



LOL
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000