Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 22-Apr-12 11:30am
Comments
milenalukic at 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
0 OriginalGriff 369
1 Sergey Alexandrovich Kryukov 284
2 Maciej Los 260
3 George Jonsson 195
4 King_Fisher 160
0 Sergey Alexandrovich Kryukov 10,899
1 Maciej Los 5,594
2 OriginalGriff 5,544
3 CPallini 3,819
4 BillWoodruff 3,579


Advertise | Privacy | Mobile
Web01 | 2.8.141030.1 | Last Updated 22 Apr 2012
Copyright © CodeProject, 1999-2014
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