Click here to Skip to main content
15,894,265 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all

I write 3 layer project in C#.net and my database is access 2010
I want to protect Access database With access level (show,write,change). and I very search in web and don't find good solution for this topic.

for example :
the one of solution is set password on the access database but I can remove password with program or disable access database that this solution don't good way because this is vulnerable.

Is there a best solution ? , or change database to SQL server

thanks a lot.
Posted
Updated 19-Mar-15 1:52am
v4
Comments
Joan Magnet 19-Mar-15 8:23am    
It's difficult to protect a MS-Access database. Try to use a sql database, you can grant access via user or roles.

http://www.techrepublic.com/blog/10-things/10-tips-for-securing-a-microsoft-access-database/
bernova 19-Mar-15 9:46am    
Thanks Joan . Is it good idea to hash table data in the another thread?
bernova 19-Mar-15 11:18am    
I write a module in VBA that Hide Access table , and set password on module , is it good way ?

1 solution

C#
var dbe = new DBEngine();
var databaseFile = @"C:\Users\x339\Documents\Test.accdb";
var password = "abc123";
Database db = dbe.OpenDatabase(databaseFile, False, False, string.Format("MS Access;PWD={0}", password));


http://www.java2s.com/Tutorial/CSharp/0560__ADO.Net/ConnectingtoaPasswordProtectedMicrosoftAccessDatabase.htm[^]
 
Share this answer
 
v2
Comments
bernova 20-Mar-15 12:45pm    
this way have been cracked with software

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