Click here to Skip to main content
13,046,087 members (45,897 online)
Rate this:
Please Sign up or sign in to vote.
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 22-Apr-12 11:30am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 22 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100