How to encrypt *.mdf file

Hello all,

This is my first post here at vbforums. I hope someone can help with my question.

I make a program for work that encrypts and decrypts .mdf files in C#. I can encrypts and decrypts .sql files, but I can't with .mdf files.

Thank you in advanced.

If you are on Enterprise Edition, you can use Transparent Data Encryption (TDE). See details here.