Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
Well could you tell me how to secure my databse from other people accessing it?
The way i make the database is (in visual studio) with add -> new item and choose "Service-based Database" (.mdf). But as i saw, if i open a new project and go with add -> Existing item and choose the previous made database, i can access every table and change it content...

So how can i prevent this?
Posted
Comments
milenalukic 22-Apr-12 18:25pm    
It seems like that when you create the DB from visual studio you are using an account with more privilleges than you would like your users to have. you will need to go to you SQL server directly and create a restricted access user, giving only the rights that your users require. Also using stored procedures is a more secure way of programming SQL.

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