Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to know whether there is a way to hide data in sqlserver?
I mean, I don't want other users to view data from query analyzer
and enterprise manager without proper password.

Any help would be appreciated
Posted

I would suggest use the db roles properly. Create a new db user that has only limited access to a certain DB and certain table. For more info, click here[^].
 
Share this answer
 
v2
Comments
Albin Abel 16-Apr-11 14:02pm    
Agreed. 5
I don't want other users to view data from query analyzer and enterprise manager without proper password
If the proper password is not there, anyone cannot connect to the database and then won't be able to use the query analyzer or any tool and look data.

What else are you looking for?
 
Share this answer
 
Comments
Albin Abel 16-Apr-11 14:02pm    
5. roles and password
You could also encrypt the data on insertion into the Database. I do that for example if Im storing access credentials for a user account on a website. I always make sure I encrypt the users credentials on the record. I have a few routines setup that I reuse to encrypt values passed to the database and decrypt when they come back automatically.
 
Share this answer
 
Comments
Albin Abel 16-Apr-11 14:03pm    
Agreed. Credentials has to be encrypted.
The basic thing is to protect the data with both user identification and roles. With users you give a person or a group an access to a database, see: http://msdn.microsoft.com/en-us/library/ms173463.aspx[^].

When the user has an access to the database you use roles to handle the privileges, what can be seen or done, see: http://msdn.microsoft.com/en-us/library/ms187936.aspx[^].

When you have secured the data with both of these mechanisms, a user cannot see the data he/she doesn't have the privilege to see, no matter what the tool is.
 
Share this answer
 
Comments
Albin Abel 16-Apr-11 14:01pm    
Good answer. 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900