• tamil.selvanmca (9/5/2012)


    hi,

    I've been working on sql server.

    I want to protect the mdf file with password.

    I develop a windows application with sql server back end, i install into a client system, someone stop the sqlserver service and copy the mdf,ldf and store at diff sql server to know the structure of tables, queries and SPs.

    I need a solution to protect the mdf file with password.

    TDE will handle the specific question you posted but probably not the underlying intent. There really is no comprehensive way to protect your Intellectual Property (IP) if you're deploying the database to the client site. Anyone who is a local admin on the machine where SQL Server is being hosted can enter the database as a sysadmin if they know to start SQL Server in single-user mode. Encrypting the database with TDE will protect the data at rest, i.e. if someone takes the mdf or a backup of the database to another server they will not be able to access to it without knowledge of the key infrastructure. If you want to protect your IP you'll need to host the database for the solution yourself or move to a hosted solution like SQL Azure.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato