Work, yes it will. A good idea, no, very much not.
It's a security risk and it smells of bad design. Why do you want to go this route?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability