The only way I can do this is to make them stored procedures (the profiler will only show the call), but if the arguments are safe (which is likely) this will not help you (Edit: As indicated in the comments, you can change the profiler configuration to enable this anyway, so that won't help)
Do you think that you do not provide access to people who are forbidden to view data? Access to run the profiler is a fairly high level of access ...
Also, did you consider hashing your data before saving / querying it? Sometimes this will not work, but if we are talking about passwords, then they really should be stored and searched in encrypted form in any case.
source share