How safe are SQL Server 2005 MDF files? (re: security) -


We have started using SQL Server 2005 Express for a project and I have found that in every database its own The MDF / LDF file is whenever we need to duplicate our database (the second SQL Server), we only copy these files and then attach them to the database.

However, I am thinking about the security of these files, if someone from outside receives a copy of them, do they encrypt or can they just attach to them as I am doing? Am I

Thank you, John

They are not encrypted and can be used by any person by the MDF / LDF files can be loaded / attached with read access.

The actual MDF files are required to be protected, so you can take some approaches that you can. (It assumes that it is not possible to use file permissions to lock access, for example if you need protection against users with administrative rights to the machine or direct HDD access.)

    < Li> Use EFS or Encrypting files with bitlocks or files themselves in the same session / references to access files, there is no protection against other applications. But it will protect files (EFS) or any laptop / hard drive (EFS / bitlocker) from another account that is stolen.
  1. Encrypt sensitive data within the database You want to explicitly store the encryption key separately (possibly to use DPAPI, for example). SQL Server 2008 Enterprise Edition introduces a feature called Transparent Database Encryption (), to make this process easier, which clearly does not help much for the 2005 or the express edition. In this case, your best option would be to make custom encryption of sensitive data in your app. (Unfortunately in 2005 it will be required to use either the varbinary field or base 64-encoding encrypted values ​​etc.).
  2. Do not place data locally in the first place (i.e. the local express's Instead use remote SQL Server example). It does not really solve the problem, but it reduces it (you only need to protect the remote instance instead of local local / express copies).

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -