Click here to Skip to main content
11,709,220 members (67,221 online)
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 Sergey Alexandrovich Kryukov 580
1 OriginalGriff 250
2 Maciej Los 225
3 Peter Leow 219
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,027
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 22 Apr 2012
Copyright © CodeProject, 1999-2015
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