Look at the READPROFILESTRING function.

Darryl Jacoby, MCSE