• Jason-299789 (11/5/2012)


    Eugene Elutin (11/5/2012)


    There is another powerful feature which will make even viewing a stored procedure code a big hassle, it's called ENCRYPTION:

    Read about option ENCRYPTION in here:

    http://msdn.microsoft.com/en-us/library/ms187926.aspx

    The problem is that the encryption is easily reversed if you're determined enough, it might stop a casual person but anyone with any tenacity or google will be able to bybass that quickly once they have a script.

    This is one thread on MSDN about it though it appears that you need to have Admin rights.

    http://social.msdn.microsoft.com/Forums/en/transactsql/thread/e7056ca8-94cd-4d36-a676-04c64bf96330

    Lowel is correct you're better using Permissions to prevent this from happening and if it does happen using an Database trigger and Audit to trace changes so you know who to point the finger at and prove that someone has done something they shouldnt.

    Encryption it's not easily reversed...

    Even if you look posted link, you can see that it will require some work. Plus, yes you will need to have Admin rights in order to use Dedicated Admin Connection.

    So, Encryption adds even more security over permissions.

    And BTW, if I have enough rights, you will never find out what I've done, as I will be able to clean any logs...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]