SELECTED ANSWER
replied on August 28, 2017
Hi John,
I think this depends on 'when' you want to populate the relevant employee fields.
If you want the information auto-populated & displayed to the user when they initially fill out and submit a form, you will need to go the SQL route. To get metadata from the repository would require a workflow and that would not be available until after the form is initially submitted.
If the information is to be populated after the form has been submitted, you could call a workflow to pull metadata back into your business process for secondary forms/approvals or save the form into the repository and again call a workflow to process the saved submission with metadata.
A bit more work initially but I think you would find setting up a database worthwhile with a lot more flexibility down the road. Our HR department does not have any real hr software or database we could use and setting up and maintaining our own little hr database in much the way you outlined is exactly what we did.
Once a database is setup it can also be used with dynamic fields on templates within the repository if your HR department manually scans/adds docs for employees. Our HR dept loves just having to enter an employee number or last name and the rest of the metadata filled out for them as they scan in docs.
My 2 cents, hopefully helpful!
Andrew