• quote:


    Supposing im creating a personnel database and want to store national insurance numbers etc , i want this to be encrypted in the table., But throught the client application front end , a personnel details administrator should be able to see the unencrypted data .. how would i do this ?


    Your best bet then would be to create some type of custom middle-ware that encrypts/decrypts your data. Les Smith (http://www.sqlservercentral.com/columnists/lsmith) has developed a few methods on doing this. You can use these to get ideas. You could possibly create a user defined function to do something like this as well. Possibly wrap an extended stored procedure into it to encrypt/decrypt it.

    Brian Knight

    bknight@sqlservercentral.com

    http://www.sqlservercentral.com/columnists/bknight