One-way encryption and comparison is pretty darned fast. Also, as a DBA, I take it as my job to ensure that the data is safe, encrypted or not. I can't do that in the so-called "middle tier" which frequently ends up being application code.
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair
How to post code problemsHow to post performance problemsForum FAQs