Solved

How to secure a Database in MsSql 2005 so that specificc user works with it

Posted on 2011-03-02
6
208 Views
Last Modified: 2012-05-11
We would like to move a specific MsSql Database outside from its standard folder "C:\Program Files\Microsoft SQL Server\MSSQL\Data" to another folder within the PC.

    1. The SQL is in a PC, not a server.  
    2. The PC is used by different user login with their username (total of 5 users)
    3. All user uses MsSql doing queries and creating and working with their database
    4. One user is the one that has the Database we want secure so that the other \
        four user can't access it

Whats the best way doing this


. What we want is that one user have access to this specific folder
0
Comment
Question by:rayluvs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 9

Accepted Solution

by:
rawinnlnx9 earned 375 total points
ID: 35022652
Set permissions on the folder that holds the .ldf and .mdf file. Then only allow the 1 user to have the appropriate access and remove all other access except system and network services.
0
 

Author Comment

by:rayluvs
ID: 35022751
let's try...
0
 
LVL 13

Expert Comment

by:geek_vj
ID: 35024460
If you dont want other four users to access the database, then you have to provide permissions only to that user where you need the access. If you dont provide any exclusive access to other four users, then they cant access the database.

0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 4

Assisted Solution

by:samijsr
samijsr earned 125 total points
ID: 35025542
You can do both,
Set the Permission to Particular folder where Data  file reside, by allowing only 1 particular user to have Permission and removel all others.

And you can also set the Permission using SQL Server Managment Studio to get Login on Particular Database by only 1 user and denie Permission other 4.
0
 

Author Comment

by:rayluvs
ID: 35026876
yup worked!
0
 

Author Closing Comment

by:rayluvs
ID: 35026938
Gave rawinnlnx9 more points becuase his solution gave the exact results.  With the other, they recommended the giving access via studio when all my users can use studio and change this access.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question