Click here to Skip to main content
16,009,391 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am using vs2008,c#,sqlserver and .net window form application.
I have create setup and install in one pc. i want to secure my .mdf db file.
I want to know that how can secure .mdf db file such as hide file or give password as possible.

this .mdf file should not accessible by another person after installing setup.
I hope all of you can understand my question.

help will be appreciated.......

thnks
mukesh
Posted

1 solution

I would put it in the users program data area, seeing as you should do that anyhow. Then you can put a password on it, I thought. But as your app is C#, any password you use, people can see by using reflection to view your code. Why are you giving people a DB they are not allowed to access ?
 
Share this answer
 

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