3

I have a .mdf database file created with Visual Studio 2012 using Entity Framework.

I tried to secure my database with a password but I don't find a way to do that, please help me. Thanks in advance

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Henka Programmer
  • 433
  • 6
  • 18
  • Databases are typically secured by user accounts and passwords. If you need to protect the data at rest, consider block-level encryption products (e.g., Vormetric). – PeterB Apr 17 '14 at 14:39
  • 2
    A SQL Server database (`.mdf`) cannot be *password protected* like a file-based system such as Access or something like that. You have to define access permissions on a per-user basis - you cannot globally define a password to lock/unlock the SQL Server database – marc_s Apr 17 '14 at 15:06
  • What are you trying to accomplish in the long run? – Maksym Strukov Apr 17 '14 at 20:33
  • Sql Compact database *.sdf can be password protected. – Vojtěch Dohnal May 19 '14 at 08:55

0 Answers0