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 12:30pm
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 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web03 | 2.8.141220.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